P. 1
Circ-01 Picaxe Version - More Work Needed

Circ-01 Picaxe Version - More Work Needed

|Views: 7|Likes:
Published by sa29ras

More info:

Published by: sa29ras on Mar 14, 2013
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less






.:Getting Started:. .:(Blinking LED):.

LEDs (light emitting diodes) are used in all sorts of clever things which is why we have included them in this kit. We will start off with something very simple, turning one on and off, repeatedly, producing a pleasant blinking effect. To get started, grab the parts listed below, pin the layout sheet to your breadboard and then plug everything in. Once the circuit is assembled you'll need to upload the program. To do this plug the Picaxe Shield Base into your AXE027 cable. Then select the proper port in File > Options >Serial Port Tab > (the comm port of your AXE027 Cable). Next upload the program by going to Picaxe > Program (F5). Finally, bask in the glory and possibility that controlling lights offers.
If you are having trouble uploading, a full trouble shooting guide can be found here: http://www.picaxe.com/Getting-Started/Technical-Support/

CIRC-01 Breadboard Sheet x1 330 Ohm Resistor Orange-Orange-Brown x1 2 Pin Header x4 5mm Yellow LED x1 Wire

pin 13

longer lead

(light emitting diode)

resistor gnd

(330ohm) (orange-orange-brown)

(ground) (-)

The Internet
.:download:. breadboard layout sheet http://ardx.org/BBLS01S .:view:. assembly video http://ardx.org/VIDE01


newpin and dirS.CODE (no need to type everything in just click) CIRC-01 Web address coming soon text file on the picaxe forum blogs /'header to be included when i have finalised the look for all programs #sim axe401 #picaxe28x2 symbol ledpin = s. the most likely cause is a confused serial port.9: (also change the wire) symbol ledpin = S.9 and dirS.9 = 1 Add in the following code before the loop: pwmout ledpin. MORE.com MAKING IT BETTER Changing the pin: The LED is connected to pin S.13 but we can use any of the picaxe shield based pins. send us an e-mail and we will get back to you as soon as we can.150 Replace the code inside the loop with: pwmduty ledpin.see the discussion when i publish it dirS.newpin Then upload the program: (F5) Change the blink time: Unhappy with one second on one second off? In the code change the lines: high ledpin pause time on //(seconds * 1000) low ledpin pause time off //(seconds * 1000) Control the brightness: Along with digital (on/off) control the Arduino can control some pins in an analog (brightness) fashion. help@oomlout.13 'for simulation . you can change this in file>options> Still No Success? A broken circuit is no fun. Change the LED to pin S.13 and move it to a pin of your choice (from 0-13) (you can also use analog A0-A5) Then in the code change the lines: symbol ledpin = S. MORE: More details. installing it backwards does no permanent harm).change that value for 0 to 150 Fading: We will use another included example program. To change it take the wire plugged into pin S.org/CIRC01 09 . MORE. (no need to worry. To open go to See the extra text file for this example Then upload to your board and watch as the LED fades in and then out. where to ask more questions: http://ardx.the board you are using 'the picaxe chip installed in the picaxe shield base 'led connected to pin s.13 'this line added after help with day 3 . (more details on this in later circuits). Try taking it out and twisting it 180 degrees. 50 this will be a not so bright led .13 as an output do high ledpin pause 1000 low ledpin pause 1000 loop 'turn on the led 'wait 1 second (1000 milli seconds) 'turn off the led ‘wait 1 second ‘repeat NOT WORKING? (3 things to try) LED Not Lighting Up? LEDs will only work in one direction.13 = 1 'set s. To play around with it. where to buy more parts. Program Not Uploading This happens sometimes.150.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->