You are on page 1of 4

Arduino & Raspberry Pi the latest computronics Every time I find something interesting on Raspberry Pi or on Arduino I can't understand

d where does it fit ? a computer or an electronics ? ell! ever since the development boards li"e Raspberry Pi or Arduino have appeared on the mar"et the boundary between electronics and computer have really been dissolved to a great e#tent$ Anything that is possible on a P%& can be done with more de#terity and versatility on these development boards$ &elow mentioned is an '%( (ay)(ate)*ime cloc" with tailor made alarms on every +, minutes -or can be made for any other. and temperature display$ /rom here on !one can e#tend it to a humidity sensor cum water level indicator cum 0P1 sensor 2$ anything that has an analog output -not more than , volt $$. or an I3% interface can be connected to Arduino and can be monitored on the '%( screen at the same time signals can be generated for running several relays at several predecided trigger points$ *he same can also be done on Raspberry Pi but Raspi being a full fledged computer may not be so much single minded -you can say dedicated . for the pretty tas"s li"e this$ Arduino on the other hand is a micro)controller and can be made single minded and dedicated to fi#ed tas"s unerringly$ In one simple sweep it does away all the 4umbo mumbo electronics ! pcbs and other discrete components$ *he computer programs ta"es the place of present day electronics 555 *he microcontroler that we are going to use is a cheap Arduino nano board and for time "eeping we will use a cheap yet efficient (1+678 real time cloc"$ *he +9 pin 37:; or +9:; or +9:3 '%( display module comes for less than Rs<;77 now)a)days$ *he components< Real *ime cloc" (1+678R*% module ) =3$>> on deal#treme$com Arduino nano R6 ) =+7$3> on deale#treme$com '?6, temperature "itsnspares$com sensor Rs<97@ P&/ from element+;)

'%( 37:; character +9 pin Rs<;77 *he advantage of deale#treme$com is that besides cheaper price they

home deliver for free$ Aowever! at my Bindhyanagar Cuarter it ta"es nearly 3, days to reach$ *he payment can be made from any BI1A D ?aster type card D instruments$

Programming< Is a typical Arduino programming spread in setup-. & loop-.$ /or simplicity we have created a few functions li"e soundg-. & digital%loc"(isplay-.! print(igits-int digits. etc$ to ma"e the script more efficient$ (1+678 < Is a typical real time cloc" which is connected to the I3% bus of Arduino nano which is the pin no Analog ; -1(A. and Analog , -1%'.$ %onnect the 1(A pin to analog pin); and the 1%' pin to analog pin),$ *he ground will go to the Arduino ground and the B%% will be connected to the @, volt of Arduino$ *he ma4ority of R*% functions are ta"en care by the open source (1+678R*%$h header file$ (1+678 It has an on board 6 Bolt cell to "eep time in the event of power failure$ hile connected it ta"es power from the , volt supply$

'%( character panel< *he typical Aitachi A(;;8E7 compatible has +9 pins$ *he connection reCuires 9 -; bit. to +7 -E bit. pins to Arduino$ Aere we used ; pins for connecting it to Arduino$
Aere is how I wired up my '%( < LCD Pin Function 01 GND 02 +5V Contrast via 560 03 ohm resistor 0 !S 05 !# 06 $na%&e 0' Data 0 0) Data 1 0* Data 2 10 Data 3 11 Data 12 Data 5 13 Data 6 1 Data ' +5V via 560ohm 15 resistor 16 GND PINS to connect GND +5V GND Pin"2 GND Pin"3
N(C N(C N(C N(C

Pin" Pin"5 Pin"6 Pin"' +5V GND

Alarm 1ound< /or sound generation we use pin no)++ to connect to a small peiFo buFFer and the tone-. function of Arduino to generate a typical audible sound with varying freCuency as pitch$ R*% *ime< *he R*% time may need to be synchroniFed first time you connect it to the Arduino$ /or that here we're supplying one program which you load on Arduino ! run and then open the serial monitor ! press 'y' and the time will be set as per the time supplied in the program -see script.$ After this you can reload the main cloc" program$ *emperature 1ensor<

*he '?6, is a grand temperature sensor comes for naught from "its 'n' spares$ It measures a wide range of temperatures -),, %ent to +,7 %ent.$ Gn a typical , volt supply it measures +,77 mB for +,7 %ent$ 3,7 mB for 3, %ent$ *he device wor"s from ;$7 volt to 67 volt input supply$

@Bs H ; to 67Bolt Bout H +,77 mB at +,7 (eg %ent$ 3,7 mB at 3, (eg %ent$

Source +ro,rams are avai&a%&e at this &in-. htt+s.((/rive0,oo,&e0com(1i&e(/(023$3LcS3o4"641c540&6Sm&74-$(e/it8us+9sharin,

&ye 1$ Bera Bindhyanagar

You might also like