thanks for u all…thanks so much…
from the bot-board circuit… Vcc is supply to the pin-P12 and P15 which used for PS2 controller pin… why??? why Vcc need to be supplied to the these two pin???
What you are seeing on P12 and P15 are the pullup resistors for the PS2 controller DAT and CLK lines. These are required when using the PS2 controller.
I use my own carrier boards for the BAP28 and BAP40 (based loosely on the mini bot board) so fire away if you have any more questions.
-Bob
is this mean that both these pin is input now??? then how much current will go in the pin 12 and 15 if 1k pull-up resistor is used ??? what is the maximum current the atom can support??? is it 1K suitable for it??? or need to be higher??? thanks
Are you really asking if the values on a schematic of a known good working board are valid?
A 1k pullup resistor will draw -0- current when the pin is an input. It will draw -0- current when the pin is a high output. It will draw 5mA if the pin is a low output.
sorry… sorry… no offence… i never mean so… i just wanna learn… cos im a newbie on this
anyway… thanks for ur help…
first of all… sorry for my broken English… i had build a carrier for BAP28… everything goes fine… i mean the hexapod can be controlled and can walk as usual… but there is one weird problem happening… which is as following detail
1} buzzer keep beeping(non stop)… actually is continuous sound(same frequency after first beeping)…
2} the beeping sound is different than the one where the PS2 controller is not connected to the Atom properly
3} the sound also got a little bit different from the one when we apply power
4} during the continuous beeping sound… when i press other button such as start button… it will still appear original start button’s beeping sound pattern as usual (mix with the continuous beeping)
5} but the buzzer goes normal(pin9 LOW) and fine after i reset it or press square button(ps2) for the (1st press and 2nd press after start button)
6} every time apply power… it will keep beeping(pin9 HIGH) until i press reset or square button (1st press and 2nd press after start button)
7} but the beeping comes again(pin9 HIGH) if i press square button(3rd press and 4th press)… and will goes normal(pin9 LOW at 5th press and 6th press)…
8} the reset button can be press at anytime and works fine(pin9 LOW) anytime i press it
9} conclusion is for square button (1st and 2nd press- Pin9 LOW… 3rd and 4th press- Pin9 HIGH… 5th and 6th press- Pin9 LOW and so on)
but the hexapod can be controlled as usual… please help…
what happen actually??? why i need to press reset or square button(1st,2nd,5th,6thpress)??? please help… thanks
What kind of buzzer? Part #?
Alan KM6VV
the buzzer doesn’t have any series number or part number… actually i feel weird that why the pin P9 keep HIGH which cause my buzzer keep beeping… i wondering why my PIN P9 keep HIGH… thanks…
(using coding from aka Xan)
Just a thought, there are different kinds of “beepers” or transducers. Maybe yours makes continuous sound with a hi on the input to the transistor.
I don’t remember, but I’ll bet the transducer on the BB2 is “driven” by a square wave generated on P9.
Any numbers on your buzzer? Any + or - signs? If you find the signs, I’d try applying 5V or so directly to the buzzer, I’m thinking you’ll get a sound!
Edit:
Looks like the BB2 uses a KC-1206, and it has + - signs on it too. So that may not help.
Alan KM6VV
You never posted any code. If you don’t make pin 9 low it can float high causing your beeper to beep. We use a speaker on the Bot Board and you can feed it waveforms and here the sounds. You apparently are using a device that generates a tone when a DV voltage is applied.
i had edit my post cos got some changes…
im using the code form link (lynxmotion.com/images/html/build159.htm)
for the code… if im not mistaken… it will LOW on pin9 if i press nothing right?? and will HIGH only for few second if certain button is pressed… but why mine keep HIGH on pin 9 while im using the same coding?? and work properly if i attach to the BAP28 to the bot-boardII(thanks Lynxmotion)
In Phoenix code, I didn’t see any “high P9” statements, only
“sound P9,[100\4000, 100\4500, 100\5000]”
Which is what I would expect.
Try a simple program, with just the high and low commands, see what you get.
I doubt if P9 level is defined until after you play a sound. And then it might be just where ever it was left.
If you get simple sound on/off control with just hi and low commands then you’ve got a buzzer, not a transducer (speaker) element.
Alan KM6VV
i’d tried a simple simple high low sound command …
everything goes fine… the pin9 work accurately as programmed…
please help… thanks…
Not sure what you mean. I’m talking about the high and low commands, like
high PS2SEL
that you see in the code.
The sound command works?
sound P9,[100\4000, 100\4500, 100\5000]
There is no simple high low sound command.
do:
[code] high P9
pause 1000
low P9
[/code]
something like that.
What is pin9 accurately doing for you now?
Alan KM6VV
first of all… sorry for my broken english that make u confuse…
i mean i had try something like
Sound P9,[60\4000,80\4500,100\5000]
pause 2500
Sound P9,[100\5000,80\4500,60\4000]
pause 2500
Sound P9,[60\4000,80\4500,100\5000]
pause 2500
Sound P9,[100\5000,80\4500,60\4000]
pause 2500
Sound P9,[60\4000,80\4500,100\5000]
pause 2500
Sound P9,[100\5000,80\4500,60\4000]
during pause command… the voltage at pin 9 is 0V for duration 2.5second
thats the LOW condition i mean
and the HIGH condition is there got output voltage (square wave with any amplitude any frequency)
thats the HIGH condition i mean
its easier to represent it with LOW and HIGH
sorry
thanks
please help
When do you get a high? It’s strictly where ever the pin is left, as far as I know.
You’ve got a series of three notes, separated by pauses. What do you hear?
Did you ever try what I suggested?
Alan KM6VV
first of all…really thanks for keep helping me… i appreciate it…
and sorry… because actually i face some difficulty to understand your sentence… maybe because of my broken English language… my english not so good… and furthermore u got an abstruse language… so maybe u can just use simple english to me… haha…
okok… I’d tried the code
high P9
pause 1000
low P9
for my BAP carrier… the buzzer will beeping(5V pin9) when applied power and then become LOW(0v pin9) for the rest… thats all…
so… ???
Try putting 5vdc and ground across the speaker / buzzer. (out of circuit)
If it goes click! then its a speaker.
If it goes beeeeeep! it’s a buzzer.
A speaker will make tones like different frequency, like a phones keys, when a wave is sent to it. .
A buzzer will only make the same buzzing sound when dv voltage is applied.
This is what they are trying to understand.
ya… i tried it… it goes beep… so it is a buzzer right?? so what u trying to tel me??? im a bit blurr… sorry…
oh ya… bout the bot-board II is using speaker or buzzer actually???