Control AP-8 with BS2p40
beaker
Posts: 2
I would like to be able to control the EFX-TEK AP-8 Audio Board with the BS2p40, but I don't know the pinout for the 3-pin header on the AP-8 board.·
The examples I found in the AP-8 documentation and EFX-TEK website give examples of connecting the AP-8 to a Prop-1 or Prop-2 with a 3-wire servo extender cable, which is not much help if another MCU is being used.
The Serial I/O pin used for communication to the AP-8 is P15 on the BS2p40.· I've tried moving a cable, connected to P15, to each pin on the AP-8 serial header, but no luck in getting communication.
What does the B, R, and W of the AP-8 serial header correspond to in serial lingo?· Do I need·all three·pins on the AP-8 serial header or just one?· Can I use P15 on the BS2p40 as a serial I/O pin or do I need separate I and O pins?
I attached the sample program from EFX-TEK.· The $STAMP declaration originally read BS2.· I changed it to BS2p so it would load.· Otherwise, it is exactly as downloaded from EFX-TEK.· I also, attached the AP-8 documentation from EFX-TEK.
Thank you for any help that can be given!
··· --Beaker
The examples I found in the AP-8 documentation and EFX-TEK website give examples of connecting the AP-8 to a Prop-1 or Prop-2 with a 3-wire servo extender cable, which is not much help if another MCU is being used.
The Serial I/O pin used for communication to the AP-8 is P15 on the BS2p40.· I've tried moving a cable, connected to P15, to each pin on the AP-8 serial header, but no luck in getting communication.
What does the B, R, and W of the AP-8 serial header correspond to in serial lingo?· Do I need·all three·pins on the AP-8 serial header or just one?· Can I use P15 on the BS2p40 as a serial I/O pin or do I need separate I and O pins?
I attached the sample program from EFX-TEK.· The $STAMP declaration originally read BS2.· I changed it to BS2p so it would load.· Otherwise, it is exactly as downloaded from EFX-TEK.· I also, attached the AP-8 documentation from EFX-TEK.
Thank you for any help that can be given!
··· --Beaker
Comments
The 3-pin header is a standard servo connection where B = Black/VSS (Ground), R = Red/VDD (5V) and W = White/Signal (Serial, in this case). I see you also have example BS2 code. Note that the baud value on the BS2 is different from the same baud rate value on the BS2p40. You will also need to change that. Basically connected the black lead to your VSS, red to your VDD and the white to the I/O pin you want to use. Make sure the code reflects the correct I/O pin and Baud rate and you should be good. I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thanks Again!!·
··· --Beaker