So i'm trying to run my first picaxe code (a sample peice of code), and the computer says the code downloads just fine to my board, but then nothing happens. The exact code i used is below:
servo 0, 150
wait 2
(it's the only thing on the page) the example said it should turn the servo to the center position, but nothing happens, at all. i've double checked the plug location, and it is on pin 0. (and the brown wire is to the outside, toward ground, as it should be). I also tried other ports (and changed the program accordingly) and thing happened then either. I also tried a different servo, (as I have 2)... neither worked. Any ideas?
I’ve tried having the horn in different positions, and no, it doesn’t make any noise that I can hear. (The microcontroller should work, as the wheels do turn, albiet slowly.) Perhaps I should try fresh new batteries… hmm.
I got it working, thank you everyone! (I, Uh, apparently had the wrong chip installed on the board. I figured this out after I tried and double checked everything you guys suggested, so thanks!)
A different question, How do I go about finding out exactly what each of my chips does? And how can I exapand the board to have more chips? (as I think the chip I have extra is an amp for acoustics,and i’d eventually want to program the robit to speak, or something at least)
If I have the board correct, then I am confused as to what “the wrong chip” could have been --I mean, there are only 2 IC’s on the whole board and one of them is your Picaxe. You are up and running, I suppose thats all that matters.
The other IC that is on your board (the 8-pin 24LCxx) is a memory chip, an EEPROM.
I don’t think the Picaxe is going to be outputing speech for you, but I have had great success in the past with serial Mp3 players and others have gotten results with the SpeakJet Chip.
Sorry, I have it now. In addition to the chips associated with your board, you have some extra chips and you would like to know what they are so you can add them to the proto area of your 28/40 board. Dig it.
Ok, first rule of robot building. Information seeking… Google the chips.
Yup, the best gosh-darn way of figuring out what a chip does is to note what is written on the chip and then google that text. You are looking for a datasheet which will probably be in PDF format. The datasheet will tell you all about the chip, what you can and can’t do with it, pinout diagrams and probably a basic schematic of an example circuit.