Lynxmotion Tech Support

www.lynxmotion.com
It is currently Wed Jun 19, 2013 5:53 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 67 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Tue Mar 27, 2012 7:00 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4422
KM6VV wrote:
Not that you need a change, if they're already dedicated to PBs. I hadn't heard that, at least not on the UNO.

I should be more specific here, the IO pins are dedicated to pushbuttons/Leds/Speaker on my board, not specifically by Digilent or Pic32MX... :D

If I were to make a Rev 2, I should also double verify that some of my uses don't screw up other uses, like connections for SPI... Also need to try it out with Arduino Max32. May also add in a Jumper to disable the XBee portions. That is the connection from +5V to the Voltage regulator going to XBee and the like. No use using the power if you are not doing something. But still need to do a lot more testing (playing) to see what else I would think of changing...

Kurt


Top
 Profile  
 
PostPosted: Wed Mar 28, 2012 12:13 pm 
Offline
Robot Guru
User avatar

Joined: Fri May 25, 2007 8:21 pm
Posts: 3885
Location: Central Coast, CA, USA
"Disable" jumpers are a wise idea. Watch out for the motor driver boards, I expect some conflict there...

http://blushingboy.net/p/motorShieldV3/

comes to mind.

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 8:03 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4422
Now that I wish to get back to testing my changes to the Arduino Code, I thought it would be nice if I finally built the 2nd of my Shields, such that I would have one mounted on an Arduino Mega and the 2nd on an Chipkit Max32. I finished soldering up the 2nd one today and now I am starting to put it through it's paces.
Attachment:
Kurts-Arduino-Mega-Shields.jpg
Kurts-Arduino-Mega-Shields.jpg [ 108.14 KiB | Viewed 534 times ]

Found another thing I would change if I were to build a new batch. The buttons are over the top of the large USB connector. I put some electrical tape over the connector to hopefully keep it from shorting. So far testing is going OK. I have Buttons, Leds, Speaker, PS2, I2C EEPROM...

Soon will steal back my CHR-3 from testing standard Arduino code with SSc-32, to testing out the code with the servos connected to this shield.

Kurt


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 1:05 am 
Offline
Robot Guru
User avatar

Joined: Thu Nov 09, 2006 5:46 am
Posts: 2082
Location: Norway
Hi Kurt,

I'm curious if you manage to demonstrate the difference of performance between the Arduino Mega and the PIC32 MAX.
Agree that the buttons should be placed differently. I don't understand why they use the large USB connector instead of the mini-USB.

_________________
[b]Kåre Halvorsen, Zenta[/b]
-----------------------------------------
Zenta's blog
http://zentasrobots.com/
Zenta's YouTube channel
http://www.youtube.com/ZentaOlbaid
-----------------------------------------


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 8:33 am 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4422
Hi Zenta,

I have not done as much of that yet as I want to. It would probably be pretty easy to do with an SSC-32 controlling the servo, but harder to do with the Micro-controllers, because I believe the Servo implementations on the Arduinos has been pretty well tuned, whereas the Chipkit versions could use some help...

There is an interesting implementation, that someone did for the chipkit for allowing for a software PWM and servo control on all pins that hangs off of the system clock and does not require additional interrupts. The code tries to minimize the time in the interrupt, by using a linked list of objects in time order, such that during this interrupt callback handling, you simply walk the list, process all of the ones during your current time value and simple to find the next time unit... BUT: This implementation has some issues for me. First it is a memory Hog. That is it keeps two full copy of the servo structures.
On a Max32 there are 86 pin and for each of these it keeps 8 long values. So it is using: 86*32*2=5504 bytes of data. Luckily the Max32 comparatively has lots of memory, but each time you are going to make a change to a servo, the code copies the current servo list to a working list, all 2752 bytes of it, has to touch up the pointers... This part can be somewhat minimized when you for example only copy the parts of the structures that change (things like pointers to IOPorts, Pin number... don't). Then when you make a change, it unlinks the one from the list, and then relinks it back in the right place... Note: if you are lucky you may be able to get several of your changed done in one servo loop (20ms) and it will only do the copy once...
This approach may work fine for some simple programs that only move a few servos every so often. But I want to integrate in my Timed move code that will potentially update the list every servo cycle... So I have some work to do...

Kurt


Top
 Profile  
 
PostPosted: Sat Feb 09, 2013 12:24 pm 
Offline
Roboteer
User avatar

Joined: Wed Dec 12, 2012 6:27 am
Posts: 12
Location: Poland
Hi Kurte, what's the status of Your arduino mega shield? I'm interested how's the testing.

_________________
http://www.makerobot.wordpress.com


Top
 Profile  
 
PostPosted: Sat Feb 09, 2013 3:26 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4422
I have been hacking on the Shield recently to make it work with an Arduino DUE. I had 5 boards fabricated at PCBFabexpress and assembled one of them for a Due that I recently purchased. I am in the process of doing some testing on it in the thread: viewtopic.php?f=26&t=8563

I am currently having some issues with the buttons not working on the shield. I now believe it is an issue of the back row of Stackable headers not making good contact with the headers on the DUE board... Someone up on the Arduino forum suggested trying to stuff some tinfoil down those contacts to help make contact.

I am hacking some more on my shield design to do a few things like: have the board come in slightly on the side with the power connector such that the shield is within the lip of the power plug on the DUE and can be pressed in farther. Also added pins for the two extra pins on the top row which on DUE are for a 2nd I2C. Also added pin for unused pin the header that bring voltages from Arduino to sheild, so I can use a 1x8 connector which exist versus cutting one down to a 1x7. Also addes 2nd VS1=VS2 connection like SSC-32/ARC32... to allow more amperage to go between...

Not sure yet if I will make this new one. Probably after I do some more testing. May try the Sparkfun slow cheap service...

Kurt


Top
 Profile  
 
PostPosted: Sat Feb 09, 2013 4:10 pm 
Offline
Robot Guru
User avatar

Joined: Fri May 25, 2007 8:21 pm
Posts: 3885
Location: Central Coast, CA, USA
a DUE board?

Is your shield compatible with the UNO and Mega boards?

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
PostPosted: Sat Feb 09, 2013 4:26 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4422
In theory, the shield is compatible with Arduino Megas, Chipkit Max32 and Arduino DUE. As for Arduino Uno. They don't have all of the same connections... Besides that would make a Botboarduino!

Kurt

Note: before I send off to fabricate a new batch of these boards, I may also try to squeeze a little more stuff on the board. In particular, I don't have any 5v to 3.3v conversion except for the XBee and in the case of the DUE don't need for XBee. However wondering if I need to do something about the RX for the serial ports, such that if I try to plug this into an SSC-32 I don't harm it with the signal coming back from SSC-32 being 5v.


Top
 Profile  
 
PostPosted: Sat Feb 09, 2013 9:13 pm 
Offline
Robot Guru
User avatar

Joined: Fri May 25, 2007 8:21 pm
Posts: 3885
Location: Central Coast, CA, USA
Being 5v compatible would be useful.

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
PostPosted: Sat Feb 09, 2013 9:19 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4422
Yep, I agree. Probably need to put in resister divider circuits for a couple of the RX lines. Like Serial1 and Serial2. Serial3 is setup for XBee which is 3.3v...

Kurt


Top
 Profile  
 
PostPosted: Mon Feb 11, 2013 3:07 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4422
Actually I have been hacking on the shield design some more and will probably order myself a few more boards to populate...

Currently the board design looks like:
Attachment:
DipTrace-PCB---Arduino-Mega.jpg
DipTrace-PCB---Arduino-Mega.jpg [ 76.17 KiB | Viewed 112 times ]

The main differences in this version include:
a) bottom left of board is cut out some, such that the lip of power connector on the Due and probably new megas will be outside the board, which will allow the board to get lower. Hopefully help some with stackable header issues.
b) I Removed 4 IO pins and their power connections from the board to make room... Figured I have plenty.
c) Fixed power connection. That is I screwed up and the VIOREF pin was not connected to the circuit that needed it.
d) Changed Power stackable header to 8 pins, so I don't have to cut one down to 7.
e) Added 2 more pins on the digital pins header, such that I picked up (at least for jumpers) the IO pins associated with 2nd I2C on Due
f (probably most important) ) Changed how I did voltage conversion for XBee and other Serial ports. I added an 74HC244A chip to do voltage conversion. Same chip that is used in the Parallax XBee adapter. It has 2 groups of 4 pin buffer/conversion. So I used this for the 4 TX/RX lines. So I believe that this should allow me to plug in XBEE to either 3.3v or 5v system. Likewise I now should be able to plug in SSC-32 connector to TTL and have it handle the voltage conversions... I am passing 3.3v to VDD on the chip, so I believe the RX and TX will be high on 3.3v on either voltages which I don't think will create a problem.

g) ISP connector - I had this on earlier boards, but if you use it with the male pins sticking up, it would interfere with plugging in an xbee. So I plan to use standard breakable header pins sticking down from board into ISP connecor on main board. I then put in a 4 pin connector near where I have the USART connections. Note on Due this connector is not work as an ISP but is only used for SPI.

That's all for now.
Kurt


Top
 Profile  
 
PostPosted: Mon Feb 11, 2013 5:31 pm 
Offline
Robot Guru
User avatar

Joined: Fri May 25, 2007 8:21 pm
Posts: 3885
Location: Central Coast, CA, USA
Sounds like you've been busy!

I'd suggest a header for a SparkFun BlueSMiRF, I'd use that instead of an XBee.

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
PostPosted: Mon Feb 11, 2013 6:39 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4422
Yep been playing around. Actually for BT you can try something like: https://www.sparkfun.com/products/11601
Which fits in an XBee slot. However it is longer in the front and won't currently fit in my XBee location. I could easily move the XBee in a ways, but then a pro would not fit. I am thinking I may be able to move one of the power jumpers and maybe gain enough room...

Kurt


Top
 Profile  
 
PostPosted: Mon Feb 11, 2013 9:12 pm 
Offline
Robot Guru
User avatar

Joined: Fri May 25, 2007 8:21 pm
Posts: 3885
Location: Central Coast, CA, USA
I guess that would work. No external antenna? I like the little 2.4 GHz sticks, I can use them several places. The BlueSMiRF needs 6 .025" pins. Near an edge is best, then two orientations are possible.

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 67 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group