Step 21: DC lamp and motor control

Here's the PICAXE controlling a grunty filament lamp via output pin 2. Unlike LEDs, these lamps draw 100s of mA & hence can NOT be directed handled by a PICAXE. For simple demo work perhaps interestingly control the kit filament lamp under PICAXE generated PWM etc. If the Brain Box kit motor was used as the load instead, then a small ~100nF cap. across it's brushes stops motor hash problems, while a diode handles self induced EMF concerns. Other sensors could perhaps be extended off board by the flying leads now included in some kits - classic clip leads will be suitable too.

Note the use here of the kit LDR & (DIY) 10k resistor in a voltage divider network, read by PICAXE Pin 1. This could readily allow a much more sophisticated day-night switch to be rustled up than traditional on/off discrete types. ( The 3 snap link from output pin 2 to the transistor base pases over the voltage divider links at pin 1, with no connection made)


<strong>The fire breathing PICAXE-08M2 has just been released, &amp; at much the same price (~ US$4) as the basic 08M. It offers features &amp; speeds almost an order of magnitude better, and it's the work of moments to replace the &quot;snap&quot; micro with this new offering.&nbsp; Code is largely backwardly compatible too. </strong>
I have had one of these snap connector sets for about 5 years... Sadly i have lost a hole bunch of the connecting pieces... They sell them here in the US at radio shack for about 20-30 bucks...
Elenco has two kits designed around the PICAXE 08M, Snap Circuits XP for youngsters and Snap Circuits Micro for students and &quot;fuzzy eyed seniors.&quot; I have combined the Snap Circuits Micro kit and the Snap Circuits Rover to create a Snap Circuits programmable robot: <br> <br>http://www.instructables.com/id/Snap-Circuits-Programmable-Robot/?ALLSTEPS <br>
I also decided to add a 555 timer IC to my set of Snap Circuits and built and optical theremin: <br> <br>http://www.instructables.com/id/Build-an-Optical-Theremin-Improve-Your-Snap-Circu/?ALLSTEPS
Some kind soul has just pointed &quot;Hack A Day&quot; to this PICAXEd approach - see&nbsp; <a href="http://hackaday.com/2011/06/24/enhancing-simple-circuit-kits-with-microcontrollers/">http://hackaday.com/2011/06/24/enhancing-simple-circuit-kits-with-microcontrollers/</a>
Outstanding, I have both the snap circuits and picaxe chips, but the thought of hacking snap circuits never came to mind. Thank you !
Salilphadnis: Glad you like the approach- perhaps convert one &amp; trial some circuitry yourself?! With &quot;suitable arm twisting&quot; I may be encouraged to rustle up a matching educational booklet/web site that shows layouts,schematics &amp; code.
<strong>Mid 2011 update:</strong> I've now QUITE a swag of these converted kits, &amp; use them to great effect in NZ schools. The Pin0 extension is very straight forward &amp; VERY well worth doing- I should have thought of it initially!<br> <br> Although the IR detecting Pin3 add on is a tad fiddly, it allows magical off board cross room control (even in daylight) using a simple TV Sony style IR remote. Entrancing!<br> <br> Adapting a 3 snap strip to hold a power transistor has also been very successful, and grunty loads (lamps,motors,relays etc) can now be readily PICAXE controlled.
This is fantastic + it teaches <strong>stepper motor basics</strong>! Wow again!
You're too kind, but the PICAXE approach indeed is both pretty powerful &amp; educational. <br />
First class idea. Ideal for primary schools.

About This Instructable




Bio: Retired educator/writer
More by manuka:Introducing LoRa™ ! Kid friendly bamboo geodesic dome LiFePO4 (3.2V) project, within a 3 x AA battery holder! 
Add instructable to: