Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | BX & siteplayer ?

Discussion forum for the BasicX family of microcontroller chips.

BX & siteplayer ? - dakota_99_64804 - Nov 17 22:23:00 2004


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






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Controlling the intensity of LEDs - ffolkes - Nov 18 0:03:00 2004

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






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Controlling the intensity of LEDs - George Loo - Nov 18 2:16:00 2004

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 __________________________________




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

RE: Controlling the intensity of LEDs - Tom Becker - Nov 18 6:53:00 2004

> ... 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




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )