Is the sx good enough?
I want to make a project that is capable of reading an accelerometer and a compass module and send them wirelessly to another sx while also maintaining around 7+ pushbuttons and leds. At the receiving end of these signals I want the other sx to use these signals and the signal from another compass to make two servos position themselves accurately. It will also control 2 motors. Is the sx capable of this? I know I can do it with the propeller, but I want to make a couple of these and I figure it will shave off $20+ for each one I make (no eeprom, no 3.3v regulator, and it's a cheaper microcontroller). Can it do it?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
Post Edited (I LIKE PI) : 8/15/2008 9:34:48 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
Post Edited (I LIKE PI) : 8/15/2008 9:34:48 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
In any case, you can get high speed comm. between (wired) SXes quite easily (serial, esp. and there are lots of examples including some fairly high baud rate VPs).
Size -- surface mount. They are tiny. If you need to use DIP, then 28pins can be bit a long, but it's not *too* bad size-wise, esp. if you forgo the socket.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Post Edited (Zoot) : 8/16/2008 3:15:09 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
If you do a forum search you'll see that I've posted a bunch of SX code that shows how to receive serial data and maintain servos at the same time.
[noparse][[/noparse]Edit] Program updated and re-posted below.
Post Edited (JonnyMac) : 8/17/2008 10:12:21 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
Another thing about using the SX48 is that the two counter/timers can be used as set-and-forget servo controllers (see the help file for code). You said you want to control two servos, so you're in luck.
Post Edited (JonnyMac) : 8/17/2008 10:11:50 PM GMT
1. From my small experience with the propeller, I know you can work times off of clock counts and you can also count times even while instructions are being made by counting clock ticks. can you do the same thing or something similar when using the SX?
2. What exactly changes when you use different oscilators? Does it change the speed of the processor, or just the speed of any delays?
3. What is the difference between programming it in sx-b vs assemly? Is one faster than the other? Or is it just a matter of preference? I don't want to waist my time learning sx-b when assembly is going to be much better and much less restrictive.
Thanks for your help, and if I don't answer for a while it's because I'll be gone for a few days. Again, thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Pi Guy
Yes, changing the Xtal Frequency changes the speed of the Processor. The higher the frequency of the XTAL the faster the processor is running. SXB actually compiles to assembly so it runs at the same speed. You can sometimes optimize the assembly code after it is compiled so that it runs with fewer steps, but it is really pretty effecient. Some things like serial IO are best written in assembly, but there are several threads on the forum that have serial data I/O that runs in assembly under interupts.
Radio Shack Jim