Sync Ds1302 with NTP

This code first syncs the DS1302 chip with a NTP server and then reads time from the DS1302 chip. Every time the system is booted the clock is synced with a NTP server. #include <ESP8266WiFi.h> #include “TinyDHT.h” // Adafruit library https://github.com/adafruit/TinyDHT #include <ThreeWire.h> // needed by rtc #include <RtcDS1302.h> // Makuna library https://github.com/Makuna/Rtc const char… Continue reading Sync Ds1302 with NTP

3.3v Low Dropout Regulator (LDO) – MCP1826 / MCP1826

MCP1826 or MCP1826S is a very simple and easy to use LDO or Low Dropout Regulator from Microchip Technology. There are both fixed voltage and variable voltage versions available. The company also makes custom chips. It’s features are: 1000 mA Output Current Capability Input Operating Voltage Range: 2.3V to 6.0V Adjustable Output Voltage Range: 0.8V… Continue reading 3.3v Low Dropout Regulator (LDO) – MCP1826 / MCP1826

How to Setup MQTT Server on a Windows 10 Desktop

Download the Win32 installer from the below link (I couldn’t successfully installed the CygWin version) https://mosquitto.org/download/ Once downloaded, install the package During the start of the installation process it will show links from where some dependencies will have to be downloaded Copy/Open the links Once the installation finishes go to the websites opened in the… Continue reading How to Setup MQTT Server on a Windows 10 Desktop

Arduino as an Oscilloscope

Yes an Arduino can be used as Oscilloscope without any additional hardware. Burn this code to Arduino const int probePin = A0;   void setup() { //Setup serial connection Serial.begin(9600); }   void loop() { //Read analog pin int val = analogRead(probePin);   //Write analog value to serial port: Serial.write( 0xff ); //can be skipped… Continue reading Arduino as an Oscilloscope

Burning Arduino Bootloader to Atmega8 or other Atmega

This is for all who are having problems in burning the Arduino Bootloader on an Atmega8 or any other Atmega Processor using a Arduino Board like Arduino Uno. The processor for the first time burning will have to be used with an external oscillator. I was trying without the external oscillator (was depending on the… Continue reading Burning Arduino Bootloader to Atmega8 or other Atmega