Ultimate noob fail

satrapus

Member
005.JPG

I just received my first picaxe chip (18m2) together with a chi035 power board.
The board is powered with a 12v car battery.
I did the required mods to the board.

I installed the usb cable drivers and downloaded the program to the chip successfully.

The following program which should simply sound the piezo doesn't seem to work:

#picaxe 18m2 ; default clock speed for all M2 and X1 parts is 4 MHz

; OUTPUTS
symbol piezo = b.6 ; piezo buzzer

init:
;initialise output pins
low piezo

MainLoop:
do
goSub alarmOn
loop

AlarmOn:
high piezo
return

Return


I probably did something incredibly stupid right???
Thanks
 

westaust55

Moderator
How true :)
Switched to b.1 and EUREKA - it's alive n buzzing :)

I have 3 12V outputs : ir diode, motor and piezo.
So the ir diode can go on b.3 FET?

Many thanks!
Yes you can use the B.3 FET (IR Diode from V2+/12V to FET with a suitable series resistor to limit the current.
 
Top