Tuesday, 25 July 2023

AVRDUDESS + Arduino Atmega16 & Atmega8 programming

 Arduino  Atmega16 programming ,

Before programing arduino as ISP should be uploaded ,

then use avrduddess for HEX uploading , no crystal used in Atmega16 case , some time it required 16MHz Crystal

Crystal will be used in case of Atmega8 

Arduino Pin 13 ke ATMega16 Pin 8 (or SCK of another microcontroller)

Arduino Pin 12 ke ATMega16 Pin 7 (or MISO of another microcontroller)

Arduino Pin 11 ke ATMega16 Pin 6 (or MOSI of another microcontroller)

Arduino Pin 10 ke ATMega16 Pin 9 (or RESET of another microcontroller)

Arduino 5+ to ATMega16 Pin 10 (or Vcc of another microcontroller)

Arduino Gnd to ATMega 16 Pin 11 ()



Wednesday, 12 April 2023

Bluetooth Name Changing

 After  uploading the codes , use serial moniter and apply AT commands to change the name 


#include <SoftwareSerial.h>

SoftwareSerial hcSerial(11, 10); // TX, RX

 

String fromPC = "";

 

void setup() { 

  Serial.begin(9600); // hardware serial for the USB-PC

  hcSerial.begin(9600);  // software serial Arduino to HC-06 (9600 is default)

 

  // print instructions

  Serial.println("HC-06 AT Command Programming");

  Serial.println(" -- Command Reference ---");

  Serial.println("AT (simply checks connection)");

  Serial.println("AT+VERSION (sends the firmware verison)");

  Serial.println("AT+NAMExxxxx (to change name to xxxxx");

  Serial.println("AT+PINnnnn (to change password to 4 digit nnnn");

  Serial.println("AT+BAUDn (to change to baud rate #1");

  Serial.println("  BAUD1 = 1200");

  Serial.println("  BAUD2 = 2400");

  Serial.println("  BAUD3 = 4800");

  Serial.println("  BAUD4 = 9600");

  Serial.println("  BAUD5 = 19200");

  Serial.println("  BAUD6 = 38400");

  Serial.println("  BAUD7 = 57600");

  Serial.println("  BAUD8 = 115200");

}

 

void loop() {

  // Read from HC-06

  if (hcSerial.available()) {

    while(hcSerial.available()) { // While there is more to be read, keep reading.

      Serial.print((char)hcSerial.read());

      }   

  }

   

  // Read from PC

  if (Serial.available()){

    delay(10); //     

    fromPC = (char)Serial.read();    

  

    

      hcSerial.print(fromPC); // show the HC-06 responce

      Serial.print(fromPC); // echo it back to the PC

    

  }

}

Thursday, 2 March 2023

Capacitive Fingerprint Sensor With Arduino

 

Capacitive Fingerprint Sensor With Arduino 



No enrolment or reading 

complete sketch, 

there is much difference found in sensor wiring,


 
 
---------------------------------------------------------------------------------------------------

    

#include "LiquidCrystal_I2C.h"

LiquidCrystal_I2C lcd(0x3F, 16, 2);

 

 

Tuesday, 15 November 2022

Felezjoo Detector with no counter

 This is my new compact Felezjoo detector with 3.7Vdc battery backup charging from any mobile phone charger  including  C-Type. 

Some changes like i used 2N7000 instead FET BS170  and instead of BC337 i used 2N3904

Voltage buckup module used to stepup the voltages to 18Vdc, 1x1 coil used  





Tuesday, 10 May 2022

Arduino SIM800L IMEI CHANGER

Below mentioned code can change any GSM module IMEI 

of faulty registered IMEI can be re-use in this Case,

AT+SIMEI command will be used in this case 

https://youtu.be/hOJCJVk-5JE

Another video for updating Nokia IMEI on sim800

https://youtu.be/In8d8y4rQqM


IMEI finding
delay(4000);
     SIM800L.println("AT+GSN");
      delay(1000);

----------------------------------------------------------------

#include <SoftwareSerial.h>


void setup() {


  Serial.begin(9600);


  delay(100);


  Serial.println ("AT+SIMEI=863789000008218"); } // Enter desire IMEI #

void loop() {}


Best Power supply for Sim800L module

Title of the document



Sunday, 5 September 2021

Arduino Car Alternator to Brushless Motor conversion

 Arduino Car Alternator to Brushless Motor conversion 

Below is the simple Arduino control car alternator working as a powrfull motor 
Here simple ESC 30 Amps were used 
1). Need 12VDC connected to the internal coil of alternator first

2). 12VDC also need to be  connected to ESC 

3). Arduino will get 5V from the ESC buit-in 5VDC output

4). ESC connected to arduino  pin # 8

5). 10 K resistor connected to  arduino A0

https://web.facebook.com/ksfelectronics

servo esc;    

void setup()

{

esc.attach(8); 

esc.writeMicroseconds(1000); 

}

void loop(){

int val;                           

val= analogRead(A0);   

val= map(val, 0, 1023,1000,2000);                                                          

esc.writeMicroseconds(val);      

}

Check the video:

https://www.youtube.com/watch?v=LzQ_vyZUGTU