Electronics

Electronics

Κυριακή 15 Μαρτίου 2015

Make Your Plants Smile








A very nice project by thanasisloi7, which can be made in an evening. In his project he uses an ATtiny85 which he programs it through arduino, so if you haven't programmed an ATtiny before or you didn't make the circuit i had provided some days ago (how to programma ATtiny though arduino) you can make it by using only arduino with the only difference to change the pin numbers in the code, a procedure which takes about 10 secs! Also here are 2 links : http://www.pial.net/tools/  and  http://www.binaryhexconverter.com/binary-to-hex-converter , with the help of these two links you can give your 8x8 dot matrix any gesture you want by simply changing the lines in code : {0x00, 0x64, 0x62, 0x02, 0x02, 0x62, 0x64, 0x00},//0  and
{0x00, 0x22, 0x64, 0x04, 0x04, 0x64, 0x22, 0x00},//1,  these lines define the sad and happy face. As an extra, if you take the decision and make this circuit, ATtiny has an extra free pin (pin 3) and you can connect a transistor which will control a small pump to water your plants when they feel sad, this is just some extra lines code.

Arduino Code : https://www.dropbox.com/s/36f6ipzfvvawotc/smile_plants.ino?dl=0
 

Τετάρτη 11 Μαρτίου 2015

UV LED Exposure Box










Sometimes I make some PCBs with the photo resist method which is basically printing a project through a design software (eagle in my occasion) with a laser printer, exposing to UV light for an amount of time (10 mins) and through chemical solution-etching have the final product. I wanted to upgrade the old fluoroscent lamp my dad used to have so I made this pcb based on 2 ideas by "djhamer" and "bulb66" at instructables. This time I use 5mm Round Top Ultra Violet LED UV Light 3000MCD. The use of arduino as a timer, I find it as an extra with no use since 2 minutes now are very good for the exposure of a board. The schematic is very easy to follow and this is a project that can be finished in an afternoon. Lastly all the resistors are 1/4 watt and because I didn't had 75 R resistors I used in parallel 1 resistor of 100R and 1 resistor of 220 R which through the formula 1/R1 + 1/R2 = 1/Rr1,2 gave the final R which was nearly 70 R, and it was very good.

Κυριακή 8 Μαρτίου 2015

Bomb!! (For Airsoft Gaming....)

In this circuit I'm presenting you an airsoft bomb, the circuit is based on the excellent code by at instructables but with some minor modifications. I made it for a friend for mine so he can dress up as an terrorist for the carnival. I think the whole concept went quite well. In the circuit we have 3 wires and one button. Button is for adding seconds as more you press it, time is increasing. As for the 3 wires, One (the correct!!!) is for stopping time, the second is for decreasing time faster and the third one is for resetting time.
Basic changes I've made in comparison with ntewinkel's circuit are :
a) Using common cathode displays and not the LTC clock he suggests.
b) I didn't want my arduino to power the displays directly, so i've added some npn transistors.
c) D13 of arduino is an output which you can connect anything when time is over, I've programmed it so it can make a task for a small amount of time (in my occasion power a siren for 2 secs).
d)Add some resistors for more protection.

In the schematic you can find the connections but I'm writing here the values in case you can't read it well.

button:
5v - Button - A5 - 10k Resistor - gnd

crazy wires:
5v - RED jumper wire - A4 - 10k Resistor - gnd
5v - BLUE jumper wire - A3 - 10k Resistor - gnd
5v - YELLOW jumper wire - A2 - 10k Resistor - gnd

Action:
pin D13 is already hooked up to an LED

7 Segment Display   >   Arduino
           A                          D7
           B                          D8
           C                          D9
           D                          D10
           E                          D11
           F                          D12
          G                          A0
          Colon                   D4
          Digit1                   D2
          Digit2                   D3
          Digit3                   D5
          Digit4                   D6

All resistors at the base of transistors are 1K.
Resistors from the emmiter to 7 Segment Display are 220 Ω.
Resistors for grounding A5,A4,A3,A2 are 10k.
All NPN transistors are BC337.

Arduino Code : https://www.dropbox.com/s/sae7erugq1ibzpf/crazy_timer_with_delay.ino?dl=0








Σάββατο 7 Μαρτίου 2015

4X4 RGB Led Cube (With Common Anodes Leds)



























Based on a wonderful project by GreatScott (https://www.youtube.com/channel/UC6mIxFTvXkWQVEHPsEdflzQ) I had to take a chance to make this cube. With informations Scott is providing the project became even easier to build. The hard part is the connection between the leds, once you finish with that, then in an evening you can complete the project. Based on 3 TLC5940 shift registers, which sink power (connecting to ground), for the cathodes of each color and 4 P-channel MOSFETS for the anodes of each layer and a small arduino you can make wonderful things.


Arduino Code : https://www.dropbox.com/s/z65e7fkgze0o75u/functionByKostas2.ino?dl=0