Shop OBEX P1 Docs P2 Docs Learn Events
BS2px24 on the way — Parallax Forums

BS2px24 on the way

servelloservello Posts: 113
edited 2008-09-22 20:06 in BASIC Stamp
Hey all,

Up till now I've been fooling around with the BS2. But as the Subject line suggests, I've got a BS2px24 on the way. Besides the extra commands listed in the BASIC Stamp Syntax and Reference Manual and the Addendum listed here: www.parallax.com/Portals/0/Downloads/docs/prod/stamps/BASICStamp2px.pdf, are there any other resources available (example code, projects, etc.) that show off the capabilities of this microcontroller?

Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Deus tantum me iudicabit

Post Edited (servello) : 9/21/2008 6:19:03 AM GMT

Comments

  • dazed&confuseddazed&confused Posts: 20
    edited 2008-09-21 06:58
    · Servello you will find that the BS2P and later chips will work with all of the older codes you have writting, In addition to some more killer code that wasn't thier for the BS2,I suggest lookin @ the Parallax web site for BS2p STUFF. And I also recommened downloading the newer BS2 editor (2.4)

    ·I have found this to be self explan.·· ___WMc___out__
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2008-09-21 07:22
    servello -

    Here is a BS-2P book you can download for free:
    http://www.parallax.com/Store/Books/BASICStamp/tabid/168/CategoryID/42/List/0/Level/a/ProductID/402/Default.aspx?SortField=ProductName,ProductName

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When all else fails, try inserting a new battery.
  • servelloservello Posts: 113
    edited 2008-09-21 08:04
    Thanks Dazed and Bruce.

    By your recommendations I guess the BS2p and the BS2px are basically the same then, besides the speed, sink current and the two extra commands that the BS2px has.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Deus tantum me iudicabit
  • servelloservello Posts: 113
    edited 2008-09-21 08:08
    BTW Dazed,

    I'm running version 2.3.1 of the IDE. I see a new version was just released. Can I just run it, or do I have to uninstall my current version? Also, would you happen to know the current firmware version for the BS2?

    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Deus tantum me iudicabit
  • John KauffmanJohn Kauffman Posts: 653
    edited 2008-09-21 13:10
    If you are measuring events over a short time, you can gather and store 120 bytes of data using PUT at a rate of just a few milliseconds per datapoint. Then the GET command can read them out later.
  • servelloservello Posts: 113
    edited 2008-09-21 17:35
    Thanks for the info, John. I'll look into the PUT and GET commands. Any chance of seeing an example or pointing out some code to view?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Deus tantum me iudicabit
  • HumanoidoHumanoido Posts: 5,770
    edited 2008-09-21 18:53
    There's about 300 new programs posted for the BS2px.
    You can find all the information through Penguin Tech.

    humanoido
  • servelloservello Posts: 113
    edited 2008-09-21 21:35
    humanoido said...
    There's about 300 new programs posted for the BS2px.
    You can find all the information through Penguin Tech.

    humanoido

    Thanks. I did a search and found an 8 page premier issue in pdf form. You didn't post a link, so I hope this is what you were referring to. If it is, it seems very well put together. You are to be complimented for such a fantastic resource. However, it seems like the code links are all pertaining to the Penguin Robot and robot issues in general. As I do not have any robots could you maybe point out one or a few examples in the list that might be helpful to me?

    Again, thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Deus tantum me iudicabit
  • GeekgirlGeekgirl Posts: 50
    edited 2008-09-22 02:00
    · If you're going to use one of the Parallax serial LCD displays with the 2px, one thing I found, and it's not well documented, is that you need to use 188 for the baudmode.

    The BS2 and 2pe·like 32,·· ....··The 2p (24 and 40) like 110, but until I stumbled onto a line in a post here about using 188, I couldn't get my 4X20 to work with the 2px. I changed the 110 to 188 and all works well.




    ··· Darlene
  • servelloservello Posts: 113
    edited 2008-09-22 05:56
    Hi Darlene,

    Thanks for the heads-up.
    I can't try it out for myself yet because the BS2px24 hasn't arrived yet.
    By the way, I do use a Parallax LCD.
    After reading your post, I decided to check out the Baudmodes in the BASIC Stamp Manual.

    BS2, BS2e, BS2pe ---> Baud Rate 9600 ---> 84 (8-bit/no parity/true) <--- You say it should be 32
    BS2, BS2e, BS2pe ---> Baud Rate 4800 ---> 188 (8-bit/no parity/true) <--- This shouldn't work with a BS2px

    BS2p ---> Baud Rate 9600 ---> 240 (8-bit/no parity/true) <--- You say it should be 24 or 40

    BS2px ---> Baud Rate 9600 ---> 396 (8-bit/no parity/true) <--- You say it should be 188


    Now I'm really confused.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Deus tantum me iudicabit

    Post Edited (servello) : 9/22/2008 6:04:14 AM GMT
  • HumanoidoHumanoido Posts: 5,770
    edited 2008-09-22 12:49
    Servello, there are two Penguin Tech magazines. The first issue has the
    software list, and the second issue is about putting LCDs on the BS2px etc..
    Look past the fact that the BS2px is on Penguin Robot. You don't need the
    robot to run much of the code. In fact, you need no code changes for the
    software listed below and your BS2px microcontroller from Parallax. Many
    of these are fine examples of the power of the BS2px. Because of the power
    and speed of this stamp, it opens up all new programming possibilities as
    you can see.

    Here's the links to the two magazines.

    Penguin Tech Magazine Issue Number 1
    http://forums.parallax.com/showthread.php?p=747812

    Penguin Tech Magazine Issue Number 2
    http://forums.parallax.com/showthread.php?p=751970

    All the software is posted at the Parallax forum. You didn't mention
    seeing magazine issue number 2. Some LCD stuff here too and stay tuned
    for more on the way.

    It's up to you to know what software code you want. Choose the ones
    that don't require robot motion control. There's programs for the
    segment display, sound, music, virtual reality, infrared, light sensors,
    games, compass, LCD, menu, musical instruments, sleep machine,
    radio, ultrasonic vision, KTV, timers, eye, jukebox, memory, Morse
    Code, language, remote, vibrato, VR keyboard, touchpad, virtual
    volume amp, visual alarm, display dimmer, virtual sound chip,
    jammer, retina, sound determinator, and more that will work on your
    new BS2px. Just follow the links given for each code name. Of course
    you may need to add a peizo speaker on pin 12 or some required
    sensors.

    Each issue will introduce new code as well. In issue 2, page 7, see
    info for seven new software programs.

    humanoido
  • GeekgirlGeekgirl Posts: 50
    edited 2008-09-22 15:30
    servello said...
    Hi Darlene,

    Thanks for the heads-up.
    I can't try it out for myself yet because the BS2px24 hasn't arrived yet.
    By the way, I do use a Parallax LCD.
    After reading your post, I decided to check out the Baudmodes in the BASIC Stamp Manual.

    BS2, BS2e, BS2pe ---> Baud Rate 9600 ---> 84 (8-bit/no parity/true) <--- You say it should be 32
    BS2, BS2e, BS2pe ---> Baud Rate 4800 ---> 188 (8-bit/no parity/true) <--- This shouldn't work with a BS2px

    BS2p ---> Baud Rate 9600 ---> 240 (8-bit/no parity/true) <--- You say it should be 24 or 40

    BS2px ---> Baud Rate 9600 ---> 396 (8-bit/no parity/true) <--- You say it should be 188


    Now I'm really confused.

    The Parallax LCD displayys use 19200 as a baudrate.
    Where I mentioned 24 or 40, that refers to the 24 pin and 40 pin version of the 2p.... both use baudmode 110.
    ·
    If you look on page 401 of the stamp manual, ·http://www.parallax.com/Portals/0/Downloads/docs/prod/stamps/web-BSM-v2.2.pdf·· you'll see how to calculate the baudmode. The LCds use 8bit, no parity, true.· So
    ·
    Use the bitrate forn the particular BS2 and divide it by the desired bauudrate (disregard the decimal remainder) then subtract 20. Then add 0 (8bit,noparity)·and another 0 (true)
    ·
    For the 2px, that would be 4000000 / 19200 = 208.33333·· .......· 208 - 20 = 188 + 0 + 0 = 188
    for the 2p, that would be 2500000 / 19200 = 130.20833 .........130 - 20 = 110 + 0 + 0 = 110
    ·
    Since I just found this entry for the 2px in the online stamp manual, I guess it's better documented than I thought, I was looking in my printed stamp manual when I was first trying to use the lcd on the 2px and I guess mine is a bit·out of date.
    ·
    ·
    darlene
    ·
  • servelloservello Posts: 113
    edited 2008-09-22 20:02
    humanoido said...
    Servello, there are two Penguin Tech magazines . . .

    You are correct, I did not see the second issue.

    Thank you for the links, they were very helpful.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Deus tantum me iudicabit
  • servelloservello Posts: 113
    edited 2008-09-22 20:06
    Thanks for the clarification, Darlene.

    As is evident from my postings, I have quite a bit to learn.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Deus tantum me iudicabit
Sign In or Register to comment.