It would help to know 1) what you are trying to do, 2) the results you are
expecting from the calculations (i.e. the expected v and v2 values), and 3)
the results you are actually seeing.
Original Message
From: "Hudson T Clark" <dark_archon1@j...>
To: <basicstamps@yahoogroups.com>
Sent: Friday, June 27, 2003 11:28 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> Ok I thought this would work but something is wrong with the number
> behind the decimal point (v2). When I do this calculation on my
> calculator with adcbits = 255 I get 4.96. Is there something I'm doing
> the basic stamp doesn't support? Like maybe something wrong with the
> numbers?
> CALC_VOLTS: 'subroutine named CALC_VOLTS
> v = 124*adcbits/6375
> v2 = 124*adcbits//6375
> return
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
Hudson, let's go back to your original problem - you have an 8-bit ADC, and
you were originally using a 5 volt reference.
Thus to get the voltage "v", given an ADC value "adcbits", you need to
calculate
v = 5 * adcbits/256
NOTE the 256, NOT the 255 you had in your original post. The ADC has 256
possible values, not 255. Thus your divisor is 256. Each increment of the
ADC reading represents 1/256 of the reference voltage, or 5/246 = 0.01953
volts.
Things get a lot easier when you use a reference voltage of 256, since each
increment now represents 4.096/256 = 0.016 volts, or 16 millivolts.
v = 4.096 * adcbits/256
If you change this to measure in MILLIVOLTS, you have
v = 4096 * adcbits/256 = 16*adcbits
Thus a full scale reading will be
v = 16*255 = 4080 millivolts.
An easy way to display this with a decimal point is:
DEC v/1000,".",DEC3 v
DEC v/1000 will display the digit to the left of the decimal , while DEC3 v
will display the RIGHTMOST 3 digits of v
If v is 4080, then DEC 4080/1000 will display 4, while DEC3 4080 will
display 080.
Larry
At 02:17 PM 6/28/2003 -0700, you wrote:
>Well I'm getting 4 from v and 232 from v2. I should be getting 96 from
>v2... I'm trying to calculate voltage from a AD chip lm0831... I take in
>the binary number and do that formula adcbits being the 8bit number from
>the chip. I'm trying to make it so I can calculate it with 4.96 volts
>instead of 5. Thats what I have
>
> > v = 124*adcbits/6375
> > v2 = 124*adcbits//6375
>
>because 4.96 * 100 / 4 = 124
>and 255 * 100 / 4 = 6375
>
>Sense I can only do integer math... I was expecting for this (v.v2) to be
>4.96 but its 4.232.
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Larry Bradley
Orleans (Ottawa), Ontario, CANADA
[noparse][[/noparse]Non-text portions of this message have been removed]
Hudson, you are missing the point. 255 is the maximum value that the ADC
will return. The difference between two successive values is 1/256 of the
reference voltage. With a reference voltage of 2.56 volts, for example,
each "step" of the ADC will be 2.56/256 = 0.01 volts. The maximum value
that the ADC will return is 255, giving a voltage of 255*0.01 = 2.55 volts.
You can't actually measure a voltage that is equal to the reference.
Larry
At 09:21 PM 4/17/2003 -0700, you wrote:
>0 is a number... yes there are 256 possiable combinations... but the max
>value is 255.
>
>1111 1111 != 256
>1111 1111 == 255
>
>Thank you for your help.
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
I just got 33 messages from the same person, in a ROW?
As a side note, could everyone please include a reasonable amount of the
original message when they reply? If you strip it all off, it is difficult
to understand what the subject is.
Well I'm getting 4 from v and 232 from v2. I should be getting 96 from
v2... I'm trying to calculate voltage from a AD chip lm0831... I take in
the binary number and do that formula adcbits being the 8bit number from
the chip. I'm trying to make it so I can calculate it with 4.96 volts
instead of 5. Thats what I have
> v = 124*adcbits/6375
> v2 = 124*adcbits//6375
because 4.96 * 100 / 4 = 124
and 255 * 100 / 4 = 6375
Sense I can only do integer math... I was expecting for this (v.v2) to be
4.96 but its 4.232.
check out this web site, it has some sample code for motor control with the
stamps using the board shown. You may need to change some of the logic to
fit your particular application but the basis is there.
jim http://www.geocities.com/jimforkin2003/
I have a Motor Mind B DC motor control module.I would like to reverse the
motor with code. The documentation includes code for all functions except
Rev. Rev code is shown for a BS1 but does not work for a BS2.
The following fragment runs the motor fine but I need to reverse direction
intermitently for my application. Can anybody out there lend a hand.
'{$stamp bs2}
output 14
input 15
tm con 15
fm con 14
high fm
startup:
Pause 1000
'This runs motor
serout fm,396,[noparse][[/noparse]$55,$83,$DD]
To UNSUBSCRIBE, just send mail to: basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
You'll have to make a connection with a 3-pin header. The outer pins
are power (5v) and ground; the middle pin is the signal from one of your
Stamp pins. Use PULSOUT to send positioning commands to the servo.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
I'm a beginner with the basic stamp Rev. D and my problem is that I
can't dont know where the 3 wires from the servo go on the board.
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to: basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Jon Williams <jwilliams@p...> wrote:You'll have to make a connection
with a 3-pin header. The outer pins
are power (5v) and ground; the middle pin is the signal from one of your
Stamp pins. Use PULSOUT to send positioning commands to the servo.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
I'm a beginner with the basic stamp Rev. D and my problem is that I
can't dont know where the 3 wires from the servo go on the board.
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to: basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
This message has been scanned by WebShield. Please report SPAM to abuse@p....
To UNSUBSCRIBE, just send mail to: basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body of
the message will be ignored.
We could use a lot more detail in order to help. What exactly is happening,
what is your code and hardware? Can you blink the LED at all, or just not
how you want it to? Let us know and we will help all we can.
Jonathan
www.madlabs.info
Original Message
From: "yeomlb" <yeomlb@y...>
To: <basicstamps@yahoogroups.com>
Sent: Sunday, November 09, 2003 10:43 AM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> i am a new user with basic stamp2 and i need some assistance with my
> code.
>
> i have created a code to light up a couple of LED's one at a time.
> i am trying to control the lights with a switch; however, the code
> does not work.
>
> please help, THANKS!
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
you will have to drive an external amplifier circuit. just connect a power
transistor(1 amp) in normal amplification mode, and it will drive 50 led's.
Original Message
From: "yeomlb" <yeomlb@y...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, November 18, 2003 7:41 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> sample:
>
> One Led to Port 1
>
> HIGH 1
> PAUSE 2000
> LOW 1
> PAUSE 2000
>
> i want to light up a string of 50 LEDs in parallel; however, it is
> not bright enough. without changing the code or use a simple code,
> how do i make the LEDs brighter without effecting the stamp?
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
i want to light up a string of 50 LEDs in parallel; however, it is
not bright enough. without changing the code or use a simple code,
how do i make the LEDs brighter without effecting the stamp?
To UNSUBSCRIBE, just send mail to: basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Note if you send 20 mA through each of 50 LED's,
you're talking 1 AMP. This is do-able, but that
is a LOT of current. You might want to use
low-current LED's (5 mA each), or multiple drivers
to send that much current.
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> You'll need to use an external driver (Darlington, MOSFET, etc.) to
> switch the current for your LEDs.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
Original Message
> From: yeomlb [noparse][[/noparse]mailto:yeomlb@y...]
> Sent: Tuesday, November 18, 2003 6:41 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] (unknown)
>
>
> sample:
>
> One Led to Port 1
>
> HIGH 1
> PAUSE 2000
> LOW 1
> PAUSE 2000
>
> i want to light up a string of 50 LEDs in parallel; however, it is
> not bright enough. without changing the code or use a simple code,
> how do i make the LEDs brighter without effecting the stamp?
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject
> and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
you will have to drive an external amplifier circuit. just connect a power
transistor(1 amp) in normal amplification mode, and it will drive 50 led's.
Original Message
From: "yeomlb" <yeomlb@y...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, November 18, 2003 7:41 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> sample:
>
> One Led to Port 1
>
> HIGH 1
> PAUSE 2000
> LOW 1
> PAUSE 2000
>
> i want to light up a string of 50 LEDs in parallel; however, it is
> not bright enough. without changing the code or use a simple code,
> how do i make the LEDs brighter without effecting the stamp?
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
To UNSUBSCRIBE, just send mail to: basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
The BS2sx uses the Catalyst CAT24WC128 eeprom, which on its data
sheet claims 100,000 program/erase cycles. That is not enough for
recording data at one second intervals (86400 seconds in a day!).
You'd be better off recording in the scratchpad RAM, using PUT and
GET. You have 63 bytes of scratchpad in the 'sx. Just record the
variables you really need!
-- Tracy
>Hi!
>
>Very basic question. How many times can I write to EEPROM?
>(I have the BSIIsx and yes, I am a beginner [noparse]:)[/noparse]
>
>I've seen many suggestions how many times you could write
>to it. Some say it's "as many as you like" others say
>million times.
>
>The problem is that I have to use the EEPROM to store all
>the variables which i get from my GPS. And I get variables
>every second which I need (maybe not!) to store. Is there
>alternative ways of storing the variables?
>
>If it is only a million times, I'm in trouble [noparse]:)[/noparse]
>
>Thanks
>/David
Do you really need to store ALL of the variables you're getting from the
GPS? I use a BS2p for my GPS apps so I can put the GPMRC string into
Scratchpad, but that's just temporary so I can parse out what I really
want. Since you're not using a BS2p or BS2pe, you'll have to use WAIT
with SERIN to grab what you want, and you may need to do it on
successive cycles.
Here's a customer project using GPS and a stock BS2:
If you really want to do GPS cleanly, get a BS2p or BS2pe. They offer
more features than the BS2sx (like I2C, 1-Wire, LCD, the ability to
"buffer" serial data to the Scratchpad, can use READ/WRITE across
program slots) and ... they draw less current (especially the pe). You
can, of course, do GPS stuff with any BS2 (others have), but your life
will be far easier with a BS2p or BS2pe.
Here's a couple of articles I wrote for Nuts & Volts on BS2p <--> GPS
interfacing:
Very basic question. How many times can I write to EEPROM?
(I have the BSIIsx and yes, I am a beginner [noparse]:)[/noparse]
I've seen many suggestions how many times you could write
to it. Some say it's "as many as you like" others say
million times.
The problem is that I have to use the EEPROM to store all
the variables which i get from my GPS. And I get variables every second
which I need (maybe not!) to store. Is there alternative ways of storing
the variables?
If it is only a million times, I'm in trouble [noparse]:)[/noparse]
Original Message
From: "basic_wen" <junk@w...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, January 17, 2004 6:19 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> Hi!
>
> Very basic question. How many times can I write to EEPROM?
> (I have the BSIIsx and yes, I am a beginner [noparse]:)[/noparse]
>
> I've seen many suggestions how many times you could write
> to it. Some say it's "as many as you like" others say
> million times.
>
> The problem is that I have to use the EEPROM to store all
> the variables which i get from my GPS. And I get variables
> every second which I need (maybe not!) to store. Is there
> alternative ways of storing the variables?
Have a look at the FRAM devices from http://www.ramtron.com/products/datasheets.htm - they are non-volatile and
suitable for up to 10E10 read/write cyclec (that's 10 US billion or 10
thousand million UK style).
They're also easy to interface via I2C or SPI. I've used them several times
for applications that need to use the memory intensively.
from the AppliedSensors1_2.pdf Document downloaded from parallax I got this
explanation to your question in chapter 2: Data Logging . Page 39
"Then there is EEPROM. A greater amount of EEPROM memory is available on the
BASIC Stamp: 2048 bytes. Although part of the EEEPROM is used for your PBASIC
program code, there will be some left over for data storage. One great advantage
of
EEPROM is that it is semi-permanent. The EEPROM memory retains its contents with
or
without power and through resets.
Two minor limitations of EEPROM are that it is relatively slow (~10 milliseconds
to save
a byte of data), and, it will wear out after something like 10,000,000 changes
at one spot.
To put this in perspective, if one certain location in EEPROM is reprogrammed
over and
over, once per second, it would take you about 116 days to get near the
10,000,000 mark.
How many seconds are there in 116 days? On the other hand, at once per hour, it
would
take 1142 years to reach that same mark. (How many hours are there in 1142
years?) It is
something to think about in planning. In Applied Sensors we may write to a
single
location a hundred times at most, nowhere near ten million."
Original Message
From: "basic_wen" <junk@w...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, January 17, 2004 6:19 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> Hi!
>
> Very basic question. How many times can I write to EEPROM?
> (I have the BSIIsx and yes, I am a beginner [noparse]:)[/noparse]
>
> I've seen many suggestions how many times you could write
> to it. Some say it's "as many as you like" others say
> million times.
>
> The problem is that I have to use the EEPROM to store all
> the variables which i get from my GPS. And I get variables
> every second which I need (maybe not!) to store. Is there
> alternative ways of storing the variables?
Have a look at the FRAM devices from http://www.ramtron.com/products/datasheets.htm - they are non-volatile and
suitable for up to 10E10 read/write cyclec (that's 10 US billion or 10
thousand million UK style).
They're also easy to interface via I2C or SPI. I've used them several times
for applications that need to use the memory intensively.
To UNSUBSCRIBE, just send mail to: basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
It's likely that the fall did it. Reversing batteries for a moment shouldn't
do it. If you don't have access to another Stamp to make sure, I would just
send it in. Parallax has a really good deal on repairs.
Jonathan
www.madlabs.info
Original Message
From: "stepheee24" <stepheee24@y...>
To: <basicstamps@yahoogroups.com>
Sent: Sunday, February 15, 2004 3:45 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> Hi Everyone -
> My editor no longer detects my basic stamp module. I accidentally
> dropped the BOE bot from about 5 inches above my desk. When it
> fell, one of the batteries fell out. I accidentally stuck the
> battery back in the wrong way and tried to turn it on. That, of
> course, didn't work, so I realized the battery was in wrong and
> connected it correctly. Now, when I plug the battery back in, my
> green LED comes on, indicating there is power. However, when
> plugged in through the serial port, I get the "no basic stamps
> found" error. Do you think that I messed up the basic stamp when I
> dropped it or fried it somehow in this whole process? I'm just not
> sure how to troubleshoot this.
> Thanks,
> Stephanie Liese
>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
> Yahoo! Groups Links
>
>
>
>
>
>
How fast do you want them to blink? I have done a project with 64 LEDs
that sounds very similar to what you want to do. I used 8 Texas Instrument
TPIC2810 8-bit LED Drivers that use the I2C interface. I used the IC2OUT
command of the BS2p24 to communicate with these devices. These LED drivers
are $2.15 at Digi-Key.
Ron Metzner
Sr. Engineering Manager
Seagate Technology
(720) 684-2524
Hi!
I'm new to this Basic Stamp thing, and dont really know what is is.
I dont know the limits with this but i've heard that it is a great
deal of things BasicStamp can do, so here you see:
I'm building a project were i want 216 leds to light up in a row,
one after antoher, I don't really know how to explain this . I
want to make it look like the light is moving along the chain of
leds in a loop. I also want to make them all blink at a set interval
(random if it is possible?) and maybe some other cool effects, but
as said, i don't know the limits.
So thanks to anybody who can teach me anything! Greatly appriciate
it, thanks.
To UNSUBSCRIBE, just send mail to: basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
I have never done it but I believe you will basiccally need and encoder for
the x and y direction. Once you know the origin (0,0) keeping track of the
encoder pulses and knowing distance per pulse you can position at any
coordinate....in theory anyway.
usdigital.com has linear strip encoders with various resolutions.
Comments
expecting from the calculations (i.e. the expected v and v2 values), and 3)
the results you are actually seeing.
Original Message
From: "Hudson T Clark" <dark_archon1@j...>
To: <basicstamps@yahoogroups.com>
Sent: Friday, June 27, 2003 11:28 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> Ok I thought this would work but something is wrong with the number
> behind the decimal point (v2). When I do this calculation on my
> calculator with adcbits = 255 I get 4.96. Is there something I'm doing
> the basic stamp doesn't support? Like maybe something wrong with the
> numbers?
> CALC_VOLTS: 'subroutine named CALC_VOLTS
> v = 124*adcbits/6375
> v2 = 124*adcbits//6375
> return
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
Original Message
From: "Hudson T Clark" <dark_archon1@j...>
| It is impossiable for me to fix it I'm sorry.
Impossible? Why? Are you running Windoze NT or something?
Have you tried editing the date/time under Main>System Date in BIOS?
- Robert
you were originally using a 5 volt reference.
Thus to get the voltage "v", given an ADC value "adcbits", you need to
calculate
v = 5 * adcbits/256
NOTE the 256, NOT the 255 you had in your original post. The ADC has 256
possible values, not 255. Thus your divisor is 256. Each increment of the
ADC reading represents 1/256 of the reference voltage, or 5/246 = 0.01953
volts.
Things get a lot easier when you use a reference voltage of 256, since each
increment now represents 4.096/256 = 0.016 volts, or 16 millivolts.
v = 4.096 * adcbits/256
If you change this to measure in MILLIVOLTS, you have
v = 4096 * adcbits/256 = 16*adcbits
Thus a full scale reading will be
v = 16*255 = 4080 millivolts.
An easy way to display this with a decimal point is:
DEC v/1000,".",DEC3 v
DEC v/1000 will display the digit to the left of the decimal , while DEC3 v
will display the RIGHTMOST 3 digits of v
If v is 4080, then DEC 4080/1000 will display 4, while DEC3 4080 will
display 080.
Larry
At 02:17 PM 6/28/2003 -0700, you wrote:
>Well I'm getting 4 from v and 232 from v2. I should be getting 96 from
>v2... I'm trying to calculate voltage from a AD chip lm0831... I take in
>the binary number and do that formula adcbits being the 8bit number from
>the chip. I'm trying to make it so I can calculate it with 4.96 volts
>instead of 5. Thats what I have
>
> > v = 124*adcbits/6375
> > v2 = 124*adcbits//6375
>
>because 4.96 * 100 / 4 = 124
>and 255 * 100 / 4 = 6375
>
>Sense I can only do integer math... I was expecting for this (v.v2) to be
>4.96 but its 4.232.
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Larry Bradley
Orleans (Ottawa), Ontario, CANADA
[noparse][[/noparse]Non-text portions of this message have been removed]
value is 255.
1111 1111 != 256
1111 1111 == 255
Thank you for your help.
will return. The difference between two successive values is 1/256 of the
reference voltage. With a reference voltage of 2.56 volts, for example,
each "step" of the ADC will be 2.56/256 = 0.01 volts. The maximum value
that the ADC will return is 255, giving a voltage of 255*0.01 = 2.55 volts.
You can't actually measure a voltage that is equal to the reference.
Larry
At 09:21 PM 4/17/2003 -0700, you wrote:
>0 is a number... yes there are 256 possiable combinations... but the max
>value is 255.
>
>1111 1111 != 256
>1111 1111 == 255
>
>Thank you for your help.
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Larry Bradley
Orleans (Ottawa), Ontario, CANADA
I just got 33 messages from the same person, in a ROW?
As a side note, could everyone please include a reasonable amount of the
original message when they reply? If you strip it all off, it is difficult
to understand what the subject is.
Thanks in advance,
-John
v2... I'm trying to calculate voltage from a AD chip lm0831... I take in
the binary number and do that formula adcbits being the 8bit number from
the chip. I'm trying to make it so I can calculate it with 4.96 volts
instead of 5. Thats what I have
> v = 124*adcbits/6375
> v2 = 124*adcbits//6375
because 4.96 * 100 / 4 = 124
and 255 * 100 / 4 = 6375
Sense I can only do integer math... I was expecting for this (v.v2) to be
4.96 but its 4.232.
planet. I'm sorry I get it a lot from people on mailing lists...
stamps using the board shown. You may need to change some of the logic to
fit your particular application but the basis is there.
jim
http://www.geocities.com/jimforkin2003/
Original Message
From: Ben Don [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=E2UJxHwZFeszO7peqhHDmtpiduozzXXmjCV0qi4ryI3cE_V2o0uWs4cIypP1m17hZb5XnanGiOWHFxGGgjU]BENATHOME@E...[/url
Sent: Tuesday, October 14, 2003 8:03 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] (unknown)
I have a Motor Mind B DC motor control module.I would like to reverse the
motor with code. The documentation includes code for all functions except
Rev. Rev code is shown for a BS1 but does not work for a BS2.
The following fragment runs the motor fine but I need to reverse direction
intermitently for my application. Can anybody out there lend a hand.
'{$stamp bs2}
output 14
input 15
tm con 15
fm con 14
high fm
startup:
Pause 1000
'This runs motor
serout fm,396,[noparse][[/noparse]$55,$83,$DD]
Thanks
Benathome@e...
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
are power (5v) and ground; the middle pin is the signal from one of your
Stamp pins. Use PULSOUT to send positioning commands to the servo.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Kyle Cooper [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=VWrWmrsxTRLgNao5L9xy4rA3zAcTfeFM0HcNCGaVxcnINR-zo9IxKv2Rm8NhrI4zdqLkhKazJRiLG8w]crazykurby@y...[/url
Sent: Wednesday, October 15, 2003 8:34 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] (unknown)
I'm a beginner with the basic stamp Rev. D and my problem is that I
can't dont know where the 3 wires from the servo go on the board.
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
Jon Williams <jwilliams@p...> wrote:You'll have to make a connection
with a 3-pin header. The outer pins
are power (5v) and ground; the middle pin is the signal from one of your
Stamp pins. Use PULSOUT to send positioning commands to the servo.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Kyle Cooper [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=DrTSV0cudeYxWD7wBItZ2m92BGbWBbIsmMXTbUMD6415ISeARYXl4ZA5gkZhlp-eNeFk9ja4hyS-j-K4EQ]crazykurby@y...[/url
Sent: Wednesday, October 15, 2003 8:34 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] (unknown)
I'm a beginner with the basic stamp Rev. D and my problem is that I
can't dont know where the 3 wires from the servo go on the board.
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body of
the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
[noparse][[/noparse]Non-text portions of this message have been removed]
We could use a lot more detail in order to help. What exactly is happening,
what is your code and hardware? Can you blink the LED at all, or just not
how you want it to? Let us know and we will help all we can.
Jonathan
www.madlabs.info
Original Message
From: "yeomlb" <yeomlb@y...>
To: <basicstamps@yahoogroups.com>
Sent: Sunday, November 09, 2003 10:43 AM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> i am a new user with basic stamp2 and i need some assistance with my
> code.
>
> i have created a code to light up a couple of LED's one at a time.
> i am trying to control the lights with a switch; however, the code
> does not work.
>
> please help, THANKS!
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
transistor(1 amp) in normal amplification mode, and it will drive 50 led's.
Original Message
From: "yeomlb" <yeomlb@y...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, November 18, 2003 7:41 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> sample:
>
> One Led to Port 1
>
> HIGH 1
> PAUSE 2000
> LOW 1
> PAUSE 2000
>
> i want to light up a string of 50 LEDs in parallel; however, it is
> not bright enough. without changing the code or use a simple code,
> how do i make the LEDs brighter without effecting the stamp?
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
switch the current for your LEDs.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: yeomlb [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=97FxBMTj0CcLoOQpDXuDkhhkRu4iTypjgEqoYRSLW-9vmuNO2lmdzvuQBlf5Ka8EdirmzhaH]yeomlb@y...[/url
Sent: Tuesday, November 18, 2003 6:41 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] (unknown)
sample:
One Led to Port 1
HIGH 1
PAUSE 2000
LOW 1
PAUSE 2000
i want to light up a string of 50 LEDs in parallel; however, it is
not bright enough. without changing the code or use a simple code,
how do i make the LEDs brighter without effecting the stamp?
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
you're talking 1 AMP. This is do-able, but that
is a LOT of current. You might want to use
low-current LED's (5 mA each), or multiple drivers
to send that much current.
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> You'll need to use an external driver (Darlington, MOSFET, etc.) to
> switch the current for your LEDs.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
Original Message
> From: yeomlb [noparse][[/noparse]mailto:yeomlb@y...]
> Sent: Tuesday, November 18, 2003 6:41 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] (unknown)
>
>
> sample:
>
> One Led to Port 1
>
> HIGH 1
> PAUSE 2000
> LOW 1
> PAUSE 2000
>
> i want to light up a string of 50 LEDs in parallel; however, it is
> not bright enough. without changing the code or use a simple code,
> how do i make the LEDs brighter without effecting the stamp?
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject
> and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
outputs;
http://www.geocities.com/jimforkin2003/
jim
Original Message
From: Dave Visner [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=t_3JG9ojc05zE0S2FuH_rAGdDtvii0FVEgttceDZ0TQrmAUh9jpBsxKN8pcRRHnwsFYd3P1vVRI]visner@c...[/url
Sent: Tuesday, November 18, 2003 11:45 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] (unknown)
you will have to drive an external amplifier circuit. just connect a power
transistor(1 amp) in normal amplification mode, and it will drive 50 led's.
Original Message
From: "yeomlb" <yeomlb@y...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, November 18, 2003 7:41 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> sample:
>
> One Led to Port 1
>
> HIGH 1
> PAUSE 2000
> LOW 1
> PAUSE 2000
>
> i want to light up a string of 50 LEDs in parallel; however, it is
> not bright enough. without changing the code or use a simple code,
> how do i make the LEDs brighter without effecting the stamp?
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
The BS2sx uses the Catalyst CAT24WC128 eeprom, which on its data
sheet claims 100,000 program/erase cycles. That is not enough for
recording data at one second intervals (86400 seconds in a day!).
You'd be better off recording in the scratchpad RAM, using PUT and
GET. You have 63 bytes of scratchpad in the 'sx. Just record the
variables you really need!
-- Tracy
>Hi!
>
>Very basic question. How many times can I write to EEPROM?
>(I have the BSIIsx and yes, I am a beginner [noparse]:)[/noparse]
>
>I've seen many suggestions how many times you could write
>to it. Some say it's "as many as you like" others say
>million times.
>
>The problem is that I have to use the EEPROM to store all
>the variables which i get from my GPS. And I get variables
>every second which I need (maybe not!) to store. Is there
>alternative ways of storing the variables?
>
>If it is only a million times, I'm in trouble [noparse]:)[/noparse]
>
>Thanks
>/David
GPS? I use a BS2p for my GPS apps so I can put the GPMRC string into
Scratchpad, but that's just temporary so I can parse out what I really
want. Since you're not using a BS2p or BS2pe, you'll have to use WAIT
with SERIN to grab what you want, and you may need to do it on
successive cycles.
Here's a customer project using GPS and a stock BS2:
http://www.stoneflyers.com/gps_guided_truck.htm
If you really want to do GPS cleanly, get a BS2p or BS2pe. They offer
more features than the BS2sx (like I2C, 1-Wire, LCD, the ability to
"buffer" serial data to the Scratchpad, can use READ/WRITE across
program slots) and ... they draw less current (especially the pe). You
can, of course, do GPS stuff with any BS2 (others have), but your life
will be far easier with a BS2p or BS2pe.
Here's a couple of articles I wrote for Nuts & Volts on BS2p <--> GPS
interfacing:
http://www.parallax.com/dl/docs/cols/nv/vol3/col/83.pdf
http://www.parallax.com/dl/docs/cols/nv/vol4/col/103.pdf
It's not really a very good idea to use EEPROM for frequent, short-term
storage of data.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: basic_wen [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=5s4_5pNzOKeJixEZ0uyC7t0dVEpA-F0kxYbXXGh32eg7MfZAM7gdlMvl4QFK8zXTSGCH7vwW]junk@w...[/url
Sent: Saturday, January 17, 2004 12:19 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] (unknown)
Hi!
Very basic question. How many times can I write to EEPROM?
(I have the BSIIsx and yes, I am a beginner [noparse]:)[/noparse]
I've seen many suggestions how many times you could write
to it. Some say it's "as many as you like" others say
million times.
The problem is that I have to use the EEPROM to store all
the variables which i get from my GPS. And I get variables every second
which I need (maybe not!) to store. Is there alternative ways of storing
the variables?
If it is only a million times, I'm in trouble [noparse]:)[/noparse]
Thanks
/David
Original Message
From: "basic_wen" <junk@w...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, January 17, 2004 6:19 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> Hi!
>
> Very basic question. How many times can I write to EEPROM?
> (I have the BSIIsx and yes, I am a beginner [noparse]:)[/noparse]
>
> I've seen many suggestions how many times you could write
> to it. Some say it's "as many as you like" others say
> million times.
>
> The problem is that I have to use the EEPROM to store all
> the variables which i get from my GPS. And I get variables
> every second which I need (maybe not!) to store. Is there
> alternative ways of storing the variables?
Have a look at the FRAM devices from
http://www.ramtron.com/products/datasheets.htm - they are non-volatile and
suitable for up to 10E10 read/write cyclec (that's 10 US billion or 10
thousand million UK style).
They're also easy to interface via I2C or SPI. I've used them several times
for applications that need to use the memory intensively.
explanation to your question in chapter 2: Data Logging . Page 39
"Then there is EEPROM. A greater amount of EEPROM memory is available on the
BASIC Stamp: 2048 bytes. Although part of the EEEPROM is used for your PBASIC
program code, there will be some left over for data storage. One great advantage
of
EEPROM is that it is semi-permanent. The EEPROM memory retains its contents with
or
without power and through resets.
Two minor limitations of EEPROM are that it is relatively slow (~10 milliseconds
to save
a byte of data), and, it will wear out after something like 10,000,000 changes
at one spot.
To put this in perspective, if one certain location in EEPROM is reprogrammed
over and
over, once per second, it would take you about 116 days to get near the
10,000,000 mark.
How many seconds are there in 116 days? On the other hand, at once per hour, it
would
take 1142 years to reach that same mark. (How many hours are there in 1142
years?) It is
something to think about in planning. In Applied Sensors we may write to a
single
location a hundred times at most, nowhere near ten million."
Good luck
Mensaje original
De: andy [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_9wbQcN06TOXF-cgKwgDcn02MKmVBFf-LyKQZLqg3PIXf34xTPF3nw8GODs3sm8pZQg8kaS0mJiGUaOH2MM]musica@m...[/url
Enviado el: Martes, 20 de Enero de 2004 16:15
Para: basicstamps@yahoogroups.com
Asunto: Re: [noparse][[/noparse]basicstamps] (unknown)
Original Message
From: "basic_wen" <junk@w...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, January 17, 2004 6:19 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> Hi!
>
> Very basic question. How many times can I write to EEPROM?
> (I have the BSIIsx and yes, I am a beginner [noparse]:)[/noparse]
>
> I've seen many suggestions how many times you could write
> to it. Some say it's "as many as you like" others say
> million times.
>
> The problem is that I have to use the EEPROM to store all
> the variables which i get from my GPS. And I get variables
> every second which I need (maybe not!) to store. Is there
> alternative ways of storing the variables?
Have a look at the FRAM devices from
http://www.ramtron.com/products/datasheets.htm - they are non-volatile and
suitable for up to 10E10 read/write cyclec (that's 10 US billion or 10
thousand million UK style).
They're also easy to interface via I2C or SPI. I've used them several times
for applications that need to use the memory intensively.
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
It's likely that the fall did it. Reversing batteries for a moment shouldn't
do it. If you don't have access to another Stamp to make sure, I would just
send it in. Parallax has a really good deal on repairs.
Jonathan
www.madlabs.info
Original Message
From: "stepheee24" <stepheee24@y...>
To: <basicstamps@yahoogroups.com>
Sent: Sunday, February 15, 2004 3:45 PM
Subject: [noparse][[/noparse]basicstamps] (unknown)
> Hi Everyone -
> My editor no longer detects my basic stamp module. I accidentally
> dropped the BOE bot from about 5 inches above my desk. When it
> fell, one of the batteries fell out. I accidentally stuck the
> battery back in the wrong way and tried to turn it on. That, of
> course, didn't work, so I realized the battery was in wrong and
> connected it correctly. Now, when I plug the battery back in, my
> green LED comes on, indicating there is power. However, when
> plugged in through the serial port, I get the "no basic stamps
> found" error. Do you think that I messed up the basic stamp when I
> dropped it or fried it somehow in this whole process? I'm just not
> sure how to troubleshoot this.
> Thanks,
> Stephanie Liese
>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
> Yahoo! Groups Links
>
>
>
>
>
>
that sounds very similar to what you want to do. I used 8 Texas Instrument
TPIC2810 8-bit LED Drivers that use the I2C interface. I used the IC2OUT
command of the BS2p24 to communicate with these devices. These LED drivers
are $2.15 at Digi-Key.
Ron Metzner
Sr. Engineering Manager
Seagate Technology
(720) 684-2524
|
+
>
| | "lac_2k4" |
| | <lasseal@o...|
| | o> |
| | No Phone Info |
| | Available |
| | |
| | 02/28/2004 04:44 |
| | PM |
| | Please respond to|
| | basicstamps |
| | |
|
+
>
>
\
|
|
|
| To: basicstamps@yahoogroups.com
|
| cc:
|
| Subject: [noparse][[/noparse]basicstamps] (unknown)
|
>
\
|
Hi!
I'm new to this Basic Stamp thing, and dont really know what is is.
I dont know the limits with this but i've heard that it is a great
deal of things BasicStamp can do, so here you see:
I'm building a project were i want 216 leds to light up in a row,
one after antoher, I don't really know how to explain this . I
want to make it look like the light is moving along the chain of
leds in a loop. I also want to make them all blink at a set interval
(random if it is possible?) and maybe some other cool effects, but
as said, i don't know the limits.
So thanks to anybody who can teach me anything! Greatly appriciate
it, thanks.
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Yahoo! Groups Links
I have never done it but I believe you will basiccally need and encoder for
the x and y direction. Once you know the origin (0,0) keeping track of the
encoder pulses and knowing distance per pulse you can position at any
coordinate....in theory anyway.
usdigital.com has linear strip encoders with various resolutions.
_http://www.selmaware.com/stampplot/info.htm_
(http://www.selmaware.com/stampplot/info.htm)
Ken
=================
So drawing alphabet characters is beyond me! but at least get me
started with this (X,Y) data business.
Can anyone else point me to projects or links or books to help me
learn how to program BS2 to drive a simple XY plotter?
No clues in Al williams book?
[noparse][[/noparse]Non-text portions of this message have been removed]