Discussion forum for the BasicX family of microcontroller chips.
|
I've been playing with a Siteplayer, BasicX24, and a BS2p24 for a while now. The problem i am having is getting the siteplayer and basicX24 to talk to each other? I've managed to get both the siteplayer & bs2p24 to talk to each other just fine. The only change is the two stamp & program on the stamp. It seem that the basicX24 hangs while connected to the siteplayer, but once disconnected it runs fine. I am using a modifed version of the code found on Tom Igeo's site: http://stage.itp.tsoa.nyu.edu/~tigoe/pcomp/code/archives/BXserialcallresponse.bas so the code looks like this: sub main () ' set up serial port: call defineCom3(12,11,bx1000_1000) call openQueue(inputBuffer, 13) call openQueue(outputBuffer, 10) call openCom(3,9600,inputBuffer, outputBuffer) do ' read serial data in: if statusQueue(inputBuffer) = true then call getQueue(inputBuffer, inByte, 1) ' if you got the message from director, send out data: if inByte = 65 then debug.Print "data reveived" else debug.print "no data" end if end if loop end sub I've try to connect the 2 (siteplayer & basicX) the same way as on Tom's page: http://stage.itp.nyu.edu/~tigoe/pcomp/siteplayer/siteplayer-hardware.shtml but found that it somewhat worke if i make the (TX line only)connect through 7404 and no connection to the RX of the siteplayer. Well hopefully this makes sense and can be put on the right path. THanks Tony |
|
|
|
Hello- I'm looking to control the brightness of several arrays of LEDs individually. Essentially, I'd like to turn the BX-24 into an array of 20 potentiometers. My memory is quite foggy - roughly, what would I need to do this? I know the BX-24 could never supply the estimated 1.2A required to power all the LEDs, so I'd need some sort of driver circuitry. I understand all that. But what has my feeble mind confused, is how to go about turning the BX-24's digital I/O's into something analog, to control the intensity of each LED array. Thanks. ffolkes |
|
|
|
Hi consider using PutDAC. System_Library.pdf has the usage info. Best Regards, George --- ffolkes <> wrote: > Hello- > > I'm looking to control the brightness of several > arrays of LEDs > individually. Essentially, I'd like to turn the > BX-24 into an array of > 20 potentiometers. My memory is quite foggy - > roughly, what would I need > to do this? I know the BX-24 could never supply the > estimated 1.2A > required to power all the LEDs, so I'd need some > sort of driver > circuitry. I understand all that. > > But what has my feeble mind confused, is how to go > about turning the > BX-24's digital I/O's into something analog, to > control the intensity of > each LED array. > > Thanks. > > ffolkes __________________________________ |
|
> ... how [] to control the intensity of each LED array. You can do it with PWM. The BX-24 can produce two simultaneous pseudo-independent PWM signals, and you can add third-party devices, which the BX-24 can control, to produce many more. You'll find a dual-PWM example in the documentation. By changing vars in that code, you can speed both the hardware PWM rate and the code's loop rate to produce smooth apparent intensity changes in the LEDs. For large LED arrays, you'll need to do some heavy current switching - well beyond what the BX-24 can handle alone - so you'll also probably need to bone up on FET switches. Tom Tom Becker --... ...-- www.RighTime.com The RighTime Clock Company, Inc., Cape Coral, Florida USA +1239 540 5700 |