Shop OBEX P1 Docs P2 Docs Learn Events
what the power cunsumption of my pink module and basic stamp development board( — Parallax Forums

what the power cunsumption of my pink module and basic stamp development board(

rakeshakurathirakeshakurathi Posts: 30
edited 2008-02-22 05:49 in General Discussion
hi

my project is all about to control a servo motor through internet , we had pink module and basicstamp (bs2) developtment board ,,,,


hope sooo there is no prob with my code ,but the main problem is my battery getting drained off soo quickly and i can able to move only one servo with 9v duracell battery that to drains off very quickly what is the power consumption of these modules?(pink and basic stamp)


ant other alternative to control my servo motor using pink by using less power supply or else what is the voltage we can apply to the pink

we r afraid of to put more volateg in to that pink


just help me out of this issue

if thsi is not the prob i will put my code here !!!!!

Comments

  • RDL2004RDL2004 Posts: 2,554
    edited 2008-02-14 19:07
    The voltage is not what's important, it's how much charge the battery stores. The Stamp doesn't use much power, but the PINK uses around 250 mA. Add in the servos and a 9 volt battery is not going to last long at all. 5 or 6 rechargeable NiMH cells would be a better choice. You probably should post a schematic or something so we can see how it's wired up.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Rick
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-02-18 18:36
    sir,



    we r using the basic connections given in th manual like 14 to rx

    15 to tx

    14 to vdd

    and 15 to vdd

    through the examples we have gained the knowledge to control LED , we r able to put on and off the LED through the net,

    but when we r trying to control our servomotors through pink we r unable to do that, while pinging the basic stamp we get as request timed out!!!!!!

    we hope it is our battery problem ,so pls tell me what type of battery we should use to to complete our operation or any adapter pls specify if anyyyyy!!!!!!!!!!!!!!!!!

    and

    ->THE PINK module takes care of sending or receiving the packets hope it should have implemented TCP/IP stack with in it

    can anybody tell me how it is implemented or the code of TCP/IP stack built in it so that we can try to build it
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-02-18 18:37
    in the aboce reply i have mentioned 14 and 15 to vdd but 15 is for vss
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-02-19 05:09
    hi,,,,


    ReadString:

    SERIN RX, Baud, 100, Timeout, [noparse][[/noparse]STR nbvar\20\CLS] ' Get Data With Timeout

    RETURN

    in the above basic stamp code what iit exactly mean can anyone explain to me

    what do number 100 mean exactly and can we have any number in place of that what is the significance of 100 ?

    and what is timeout subroutine ?Is it cumpulsory to use time out sub routine and


    Timeout:

    DEBUG "Communication Timeout!" ' Serial Timeout

    END

    i am newbie so any one can explain
  • Mike GreenMike Green Posts: 23,101
    edited 2008-02-19 05:32
    Please read the section of the Basic Manual on the SERIN command. It is pretty clear about what the various parameters actually do. The 100 specifies the time for the timeout (100ms in the case of the BS2). There's a table in the manual that tells you how many milliseconds per unit specified for each Stamp model. As the manual describes, the timeout specification is optional. When in doubt, look first in the manual. It probably will have a description of what you want.

    Please read the PINK manual. It's pretty thorough about what the PINK does and how to do it. It provides a web server and can set HTML variable values from strings supplied by the Stamp using standard asynchronous serial I/O (SERIN and SEROUT) and can provide values from HTML fields to the Stamp also using the serial I/O. The Stamp can send E-mail to an SMTP mail server using the PINK and the PINK has an FTP client for uploading webpages and other related files only. The Stamp has no access to the uploaded files.

    Post Edited (Mike Green) : 2/19/2008 5:43:17 AM GMT
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-02-19 11:45
    Two design parameters are often ignored by those of us who are just starting out: efficency and durablity.

    This seems to be an efficency issue.
    It seems you expected the 9v battery to operate the BasicStamp, the motors, and the PINK. Those little 9v batteries are among the least efficent batteries available. If you are using the NiCad version [noparse][[/noparse]about 600-900mAH], it is even worse. You might consider going to a AA battery pack to more than double your battery life. Alkaline rather than rechargible NiMH or NiCAD will last 2 or 3 times longer.

    Durablity is a whole seperate topic. But in general, it is easier to make things more rugged than it is to rebuild a weak design. For instance, use 2N2222 transistors even though you·can get by with 2N3906 transistors. Why so, it takes 2 or 3 times more current to damage the device. The efficency is nominally the same, so is the package size.

    Also, though it may seem silly,·I put a 1-1.5 amp [noparse][[/noparse]1000-1500ma] fuse on my power supply to avoid serious damage from my more stupid mistakes when experimenting. I've blown quite a few, but still have all my Stamps in good conditon.

    I hope this helps you get the kind of design you really want.· Of course, if the project is not mobile; you could use an AC to 9V DC·wall wart and it would likely operate fine.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan

    Post Edited (Kramer) : 2/19/2008 11:55:18 AM GMT
  • RDL2004RDL2004 Posts: 2,554
    edited 2008-02-19 12:45
    The PINK doesn't have a regulator built in. You need to supply it with 5 volts regulated. The BoE on board regulator will work as a supply for the PINK but it's regulator will run on the hot side. You need to have at least 7.5 volts going into the BoE, but preferably no more than 12 volts. There are lots of battery packs with chargers in either 7.2 or 9.6 volts made for radio control that would work fine. Also, for testing purposes you could just use a wall power adapter (wall-wart) with really long wires on the connector.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Rick
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-02-20 05:40
    thank u all,,

    i have some doubts using pink module we can change variable of pink using html pages and by post method we can notify the changes

    as shown

    html>
    <form method="post" action="test.htm"
    <p>
    What value would you like to store in variable 01?
    <input name="Nb_var01" type="text" maxlength="64">
    <input type="submit" value="Accept">
    </p>
    </form>
    </html>



    my requirement is basic stamp (bs2)should check for input pin 10 and if it is high it should inform the user that ur input pin is high

    can we make this sort of action may be writing or changing any other variables of pink module
    i hope i had coveyed my message properly
  • Mike GreenMike Green Posts: 23,101
    edited 2008-02-20 06:16
    I'm not sure what you're asking.

    The Stamp can change the value of any of a large number of variables in the PINK and it can request the PINK to send the current value of a PINK variable. With ordinary programming, a Stamp could copy the state of an I/O pin to a PINK variable, probably as often as a hundred times a second and/or it could copy the value of a PINK variable to an I/O pin.

    The PINK uses the variables to make up its web page or pages and can update the value of the variables using the HTML post method.

    Since you began by talking about controlling a servo, the Stamp and PINK together can do that. The PINK provides a variable value to the Stamp in the form of a character string which the Stamp converts to a number (using a SERIN statement) and uses that number to generate a control pulse for the servo.
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-02-21 10:51
    hi ,


    sorry for not coveying u my message properly ..... lets forget that thing i got a new prob


    i can control one servo efficiently through a browser and my pink

    but when i write to control the program to control two servos pink module is reseting itself i dono know what the problem


    actually i tried to change the variable NB_var01

    Nb_var01 = 98 for straight moving of my boe-bot
    Nb_var01 = 88 for coming back
    Nb_var01 = 78 for stoping


    i can move only one servo efficently and if i try to power both of my servos i my pink module is reseting it self and showing th e default value for Nbvar_01 (1)
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-02-21 13:39
    Resetting may occur due to both servos operating at the same time and the voltage drops on either the BasicStamp or the Pink below the reset threshold.

    Are you still using a 9volt battery for everything?

    In sum, you have to provide:
    1. The right voltage to each device.
    The PINK needs 5v regulated, the BasicStamp needs 7.5v or more unregulated, and the Servos can use 5 to 6 volts [noparse][[/noparse]but not over 7.2 volts].

    2. Each has its own power requirements.
    You could actually need 2 or 3 amps to get everything running right. The BasicStamp is probably using the least power, but it depends on which Stamp you are using, the PINK needs 250ma, and the Servos can be the most demanding if the motor is stalled or in continous use.

    It is usually better to provide a separate power source for the Servos as the voltage is a bit different and if they use too much power, it won't reset the other circuits. You can have them share a common ground at one connection.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • rakeshakurathirakeshakurathi Posts: 30
    edited 2008-02-22 04:01
    hi all,,

    we have tried giving servos different power supplies from another boe-bot but we r unable to control or even move the bot


    no movement at all what to do


    to work every thing fine i mean (pink ,basicstamp(bs2),servos) what is the power supply we have to use
    we r know using dc adptaer(5v dc suuply and 200ma )

    we came to hear that for 9v adapter current generated will be 200ma only ?
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-02-22 05:49
    Well, 200ma is too little. As mentioned above, the PINK alone uses 250ma.

    It is hard to give exact numbers because peak use will be higher than minimal use. And motors vary greatly depending on the load condition. As I said before, I think you may need 2000ma. This might be be done with 1500ma 6vDC to the servos and 500ma 7.5 VDC to 9 VDC to the BasicStamp. The PINK will get 5VDC from the BasicStamp.

    With two separate power supplies, the servos MUST share a common ground connection in order to recieve the 5v signal from the BasicStamp.· In other words, if there is no ground connection, nothing will move.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Sign In or Register to comment.