Wow, what a quick response.Are you sure you are using the correct pin for the output ?.
SOUND can use any pin, but PLAY is limited to a fixed pin on the 08.
symbol n = b1
main:
if pinC.1 = 1 then gosub happy
if pinC.3 = 1 then gosub jingle
if pinC.4 = 1 then gosub silent
if pinC.5 = 1 then gosub rudolph
goto main
happy:
for n = 1 to 1
play 0,1 ; Happy Birthday to You with output 0 flashing
next n
return
jingle:
for n = 1 to 1
play 1,1 ; Jingle Bells with output 0 flashing
next n
return
silent:
for n = 1 to 1
play 2,1 ; Silent Night with output 0 flashing
next n
return
rudolph:
for n = 1 to 1
play 3,1 ; Rudolph the Reindeer with output 0 flashing
next n
return
goto main
Thanks. Now that you tell me, I remember reading that "once upon a time."Add a DISCONNECT command at the top of the program and this will allow pinC.5 to be used as an input.
You will need to power-cycle the PICAXE to force a Hard Reset when downloading after doing that. Without the Hard Reset you will get "Hardware not found" messages.
http://www.picaxe.com/FAQs/Interfacing#q9
Yes, one or the other is redundant.Given the 10k pulldown (R6) on C.5, should I eliminate the 33k (R1) that I put in to simulate the 10k and 22k programming circuit? It seems redundant.
That is very helpful; I will eliminate R1 because I won't have a programming jack on the final assembly. Thanks again.Yes, one or the other is redundant.
If you want to program the PICAXE in situ then you don't need the 10K. If you are not planning on that you can keep the 10K and lose the 33K (22K+10K)
The signal will be clipped to -0.7V to +0.7V by the diodes. As to why anything in the manual is the way it is, I don't know.I may be missing something here, but what is the purpose of diodes D2 and D3 in your schematic, preceded by C6 and followed by C7? They seem to me to be simply shorting out your output from C.2. The less complicated circuit diagram recommended on page 256 of PICAXE Manual 2 seems to work for me. (incidentally, why this is in Manual 2 and not 3 is somewhat puzzling...).
Gotta hear all about that! Happy to hear you got it all sorted out, tracecom.It is to be used in a chicken training experiment.