Arduino Open Source X-PID firmware incl.360°option

AMC, H-Bridge projects etc.
Please use the image gallery for your pictures, a short tutorial can be found here.
The first image in the first post will be shown in the project gallery.

Re: Arduino Open Source X-PID firmware

Postby rohithkumar » Wed 20. Feb 2013, 20:42

Hi BobBuilt,

Yes, you are right X-PID is not using USO commands but it is using synaptrix I/O . I am not using any separate code for driving servos, the code is provided (X-PID firmware)by sirnoname and there is no serial.println in this code. I think according your previous post you have also used it. you may know it better than me. can you please guide me to set the synaptrix
rohithkumar
 
Posts: 25
Joined: Sat 26. Jan 2013, 21:45
Has thanked: 0 time
Been thanked: 1 time

Re: Arduino Open Source X-PID firmware

Postby sirnoname » Wed 20. Feb 2013, 23:08

Updated code and plugin for the above noted reset problem of arduinos with FTDI chip.
The bad thing is that the start sequence of the converter will increase with 2 seconds per serial port because it wait for the finished reset of the arduino.
So disabling all plugins if not needed is a must ;)

Also I have uploaded a arduino nano wiring picture because it is stable working on my side. It does only cost 10€ via eBay inkl. delivery.
So the setup do decrease to 60€ with the two 25€ H-Bridges.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Arduino Open Source X-PID firmware

Postby ericRacer » Thu 21. Feb 2013, 16:21

Good news !

I ordered 2 nanos from ebay at ten box($) canadian, free shipping --> it's a gift ! very inexpensive :P
User avatar
ericRacer
X-Sim Supporter
 
Posts: 80
Images: 36
Joined: Wed 28. Mar 2012, 15:04
Location: Canada, Qc, Jonquiere
Has thanked: 3 times
Been thanked: 2 times

Re: Arduino Open Source X-PID firmware

Postby Tombo » Fri 22. Feb 2013, 20:58

Hi,
i'm new to this Board and got some questions.
I plan to build a 2Dof simulator with wiper Motors.
If i buy this H-Bridges http://www.ebay.de/itm/43A-DC-Motor-Driver-Drive-Module-H-Bridge-PWM-Contro-For-Robot-Smart-Car-Arduino-/300818612987?pt=LH_DefaultDomain_0&hash=item460a2fc2fb did i have to made any changes in the code?
So if not i only have to flash the Arduino with the usb cable and wireing everything up correctly and that's it?
That would be an Alternative to the jrk12v12 to me because this version is much cheaper and i only have to flash the arduio.

Thanks for your help Thomas
Tombo
 
Posts: 97
Images: 36
Joined: Fri 22. Feb 2013, 20:52
Location: Germany
Has thanked: 6 times
Been thanked: 8 times

Re: Arduino Open Source X-PID firmware

Postby sirnoname » Fri 22. Feb 2013, 21:35

I think the wiring picture do explain your question!
Buy and have fun ...
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Arduino Open Source X-PID firmware

Postby sirnoname » Sat 23. Feb 2013, 01:44

Update: added pwm offset (the voltage where the motors are beginning to work) and pwm maximum (to reduce power of motor id one is faster than the second one).
Also included a selectable PWM frequency.

The result is awsome. Small changes will now be moving the motor and the input glued to the result. The quality is good now and the design very sensitiv to changes. The pwm frequency seemed to be wrong implemented before and do now more noise.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Arduino Open Source X-PID firmware

Postby trust928 » Sun 24. Feb 2013, 22:21

hey how could i change the code to initialize the motor position in 0? for u understand

i have an arduino r3 and a h-bridge. but my h-bridge only have iput1 inpu2 and ground,,,,,

if i connect any of the pins input 1 or 2 to the arduino the motor start to spin.. i have tried all the pins but as soon a plug the hbridge to the arduino the motor starts to spin.. if i connect input 1 and 2 all the same time i think its gonna burn because all the outputs of the arduino have 5v.... how could i resolve it? i just need to fix it to finish the project

its driving me crazy lool
trust928
 
Posts: 14
Joined: Sat 23. Feb 2013, 01:30
Has thanked: 0 time
Been thanked: 0 time

Re: Arduino Open Source X-PID firmware

Postby sirnoname » Mon 25. Feb 2013, 00:03

You do not have a pwm or enable pin?
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Arduino Open Source X-PID firmware

Postby trust928 » Mon 25. Feb 2013, 00:44

no i dont have the pwm enable pin.

here is a img of the h-bridge

im confuse and its driven me crazy so, what should i do? theres something or light on the end of the tunel lool
Attachments
trust928
 
Posts: 14
Joined: Sat 23. Feb 2013, 01:30
Has thanked: 0 time
Been thanked: 0 time

Re: Arduino Open Source X-PID firmware

Postby sirnoname » Mon 25. Feb 2013, 10:18

The ne555 does not make sense in a H-Bridge and seems to make some PWM by iself.
I cannot answer your question. Seems to be somethig completely different like a motor speed driver with direction inputs.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

PreviousNext

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 2 guests

cron