Sunday, 5 December 2021

PCB CHRISTMAS TREE

​Hello there

Finally, Winter is here. the most interesting thing in winter is Christmas at least for me.  To celebrate Christmas I made a small PCB Christmas tree. We can use this to decorate walls and rooms. So in this tutorial, I am showing how I designed and made this PCB Christmas tree.




COMPONENTS REQUIRED

  1. NE555D SMD *1
  2. transistor 2N2222 SMD *1
  3. resistor SMD 0805 100 *1
  4. resistor SMD 0805 1k *1
  5. resistor SMD 0805 22k *1
  6. resistor SMD 08055.6k *1 
  7. BATTERY CR2025 holder *2
  8. Capacitor 10uf - 0805 *1
  9. Capacitor .10uf - 0805 *1
  10. 1N4148_SMD *1
  11. 2pinMale *1 
  12. led smd 0805   *16 

 CIRCUIT DIAGRAM

Let's start with the circuit here you can see the circuit I used ic 555 for this project the circuit is an astable multivibrator. That makes the blinking of LEDs.  After verifying the circuit, I converted that into a PCB. first I have drawn a tree outline like this. Then I placed all components inside the outline and made a simple tree PCB.








Then I generated the Gerber file for PCB fabrication. After downloading the Gerber file I went to jlcpcb.com for PCB fabrication. I choose JLCPCB because they offer only 2$ for 5 PCBs. To order PCBs just click order now and upload the Gerber file then we can select the quantity, solder mask colour, thickness etc. here I choose .4mm thickness to reduce the weight and for better diffusion. after that select the shipping method and place the order. After two weeks I received the PCBs. PCBs looks pretty nice and also the quality is perfect








Now I grabbed all components and started soldering. I started by soldering the 555 ic then I soldered all other components. After 30 minutes I finished the soldering job and now our PCB Christmas tree looks like this.  We can power this by two modes. Either you can use two 3v batteries or you can directly input 5-12volt.

Similarly, I made 3 trees. And I placed all the tress on a breadboard and gave power now see the working we can change the blinking duration by changing the capacitance value. happy Christmas to all my viewers I will see you next time.







Monday, 29 November 2021

How to interface NRF24L01 module with Arduino

Circuit diagram of Transmitter






Circuit diagram of  Receiver

RX



Download code from here

Monday, 10 May 2021

Diy op amp tester




Working of the circuit is simple, basically this circuit generates a Square wave at the output if op-amp is in working condition, resulting a Blinking LED. When we ON the circuit with op-amp is in place, initially voltage at non-inverting input (+) is higher than the voltage at inverting input (-) and output of op-amp LM741 (PIN 6) is High. So capacitor C10 starts charging through the resistor R12, when C10 charging exceeds the voltage at inverting terminal (PIN 2), then output becomes low. And when the output goes Low, capacitor C10 starts discharging and again voltage at inverting terminal of comparator becomes lower than non-inverting terminal and output goes High. This process repeats continuously and produces Square Wave at the output, which causes LED to Blink.

Wednesday, 24 March 2021

how to interface i2c lcd with raspberry pi pico


In my previous vlog, I showed you how to start with the Raspberry pi pico. 

And in this tutorial, I am going to show you how to interface I2C 16*2 LCD with Raspberry pi also I am showing how to display the internal temperature of Raspberry pi Pico in LCD. let’s get startedo for this

we need 

Raspberry pi Pico,

I2c LCD ,

some jumper wires, 

and a breadboard

 first let's place pico on Breadboard. then connect the VCC of LCD to Vbus of the pico then connect ground to ground sda to gpio 8 and scl to pin 9 that’s the first i2c port of pico. That’s all about hardware connection. Now we can connect pico to the computer via USB cable. Please watch my previous video to know more about this.

Now open Tonny Ide we have three code files. main.py is our code and the other two are the libraries for controlling LCD. First, we need to save these 3 files on Raspberry pi for that go to files and save. I already saved the files remember you have to give the exact name as I gave. in the main code section first I imported the library. Then I defined the i2c port then the display finally I printed hello world.

Now click run And that's it. You can see hello world text on LCD. This way we can display anything on LCD.

Next, let's display the internal temperature of the rp2040 chip .for that first I defined and imported Library functions then I defined the temperature sensor pin. Then declared the i2c port and pin and also the display. 

In while section first, two lines of code are for converting the analog value to temperature rest is for displaying the temperature in LCD. That's it let's save and run. Now you see the temperature on LCD. 

 circuit diagram

download code and circuit from here

Thursday, 21 January 2021

ATtiny programming using arduino UNO

 circuit diagram

ATtiny13A pin1 -> Arduino pin 10
ATtiny13A pin5 -> Arduino pin 11
ATtiny13A pin6 -> Arduino pin 12
ATtiny13A pin7 -> Arduino pin 13
ATtiny13A pin 8 -> 5v
ATtiny13A pin4 -> Ground
board URL

 Open Arduino IDE -> File -> Preferences

https://mcudude.github.io/MicroCore/package_MCUdude_MicroCore_index.json