Posts

Image
  WEMOS D1 R1 IOT Board  For data  Data Sheet Click here ... For Circuit Diagram , Code , Connection , Click here
Image
Atmega32A IC Flash USBasp - USB programmer for Atmel AVR controllers USBasp is a USB in-circuit programmer for Atmel AVR controllers. It simply consists of an ATMega88 or an ATMega8 and a couple of passive components. The programmer uses a firmware-only USB driver, no special USB controller is needed. The USBASP programmer is an important tool/accessory for embedded systems engineers/ firmware developers. It is a USB ICSP (In-Circuit Serial Programmer) that allows developers to easily upload firmware/bootloaders on AVR microcontrollers.  Unlike what you find to serial programmers like the USB-TTL converters, it does not use a dedicated chip as it runs on an atmega88 (or atmega8), and uses a firmware-only USB driver with no special USB controller required.   Features :-  Works under multiple platforms. Linux, Mac OS X and Windows are tested. No special controllers or SMD components are needed. Programming speed is up to 5kBytes/sec. SCK option to
Image
IR Control LED    
Image
  NRF PUSH BUTTON CODE For transmitter:- #include "nRF24L01.h"  #include "RF24.h" #include "SPI.h" #define SwitchPin 2 int SentMessage[1] = {000}; RF24 radio(9, 10); // NRF24L01 used SPI pins + Pin 9 and 10 on the NANO const uint64_t pipe = 0xE6E6E6E6E6E6; // Needs to be the same for communicating between 2 NRF24L01 void setup() {   pinMode(SwitchPin, INPUT_PULLUP);   digitalWrite(SwitchPin, HIGH);   radio.begin(); // Start the NRF24L01   radio.openWritingPipe(pipe); // Get NRF24L01 ready to transmit } void loop() {   if (digitalRead(SwitchPin) == LOW)    // If switch is pressed   {     SentMessage[0] = 111;     radio.write(SentMessage, 1);      // Send pressed data to NRF24L01   }   else   {     SentMessage[0] = 000;     radio.write(SentMessage, 1);      // Send idle data to NRF24L01   } } For Receiver : - #include "nRF24L01.h"  #include "RF24.h" #include "SPI.h" #define LED_PIN 2 int ReceivedMessage[1] = {000}; // Used to st

LoRa Module HC12 Demo Code (push button)

Image
  Lora Module HC 12 Transmitter and receiver Code (push button) This is For Transmitter == ..................................................................................................................................... //HC-12 Momentary Button Send #include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); //RX, TX int buttonPin = 9; boolean onOff = 0; void setup() {   pinMode(buttonPin, INPUT);   mySerial.begin(9600); } void loop() {     int buttonState = digitalRead(buttonPin);//read button state      if(buttonState == 1){//if button is down     mySerial.println(1111);//send unique code to the receiver to turn on. In this case 1111     onOff = 1;//set boolean to 1   }   if(buttonState == 0 && onOff == 1){//Verifier to send off signal once     mySerial.println(0000);//send unique code to the receiver to turn off. In this case 0000   }   delay(20);//delay little for better serial communication } .....................................................................