<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Simple Arduino DC Motor Control with Encoder, Part 1</title><link>/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1</link><description>Updated 2 Jan 2020: Embedded 2nd video I am starting to plan ahead for a robot that will have image recognition using a Raspberry Pi. Image recognition being computationally intensive, the plan is to offload the Pi with microcontroll...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Simple Arduino DC Motor Control with Encoder, Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1</link><pubDate>Tue, 12 May 2020 19:18:49 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1297305f-991a-4556-87d1-48d1c95d3eea</guid><dc:creator>wolsue</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I wonder where are the encoder connected ??&amp;nbsp;&amp;nbsp; Where is the result of&amp;nbsp; the rotation?. The subject says&lt;a class="jive-link-blog-small" href="/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1"&gt; DC Motor Control with Encoder, Part&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8517&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino DC Motor Control with Encoder, Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1</link><pubDate>Sat, 14 Mar 2020 10:48:05 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1297305f-991a-4556-87d1-48d1c95d3eea</guid><dc:creator>bobcroft</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I am not surprised that the view numbers for non Arduino processors are low since some of the others mentioned are not widely used or supported.&amp;nbsp; I would suggest that the ESP32 would be a good choice as it is more powerful than anything but the latest Arduinos, it has massive support and a very substantial amount of Arduino code can be ported to it.&amp;nbsp; I would be very interested to know if it is possible to have realistic motor encoder decoding on an ESP32 device.&amp;nbsp; I guess it would depend on the motor shaft speed.&amp;nbsp; This is just my personal opinion&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8517&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino DC Motor Control with Encoder, Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1</link><pubDate>Fri, 03 Jan 2020 04:15:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1297305f-991a-4556-87d1-48d1c95d3eea</guid><dc:creator>robogary</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;I&amp;#39;m very interested in how it goes for you. All the commercially available Raspberry Pi robot kits use a I2C interface board for h bridges , encoders, and aux IO.&lt;/p&gt;&lt;p&gt;Donkey Car, Dexter, etc....ad naseum &lt;/p&gt;&lt;p&gt;Donkey car is the vision based autonomous driving using Raspberry pi. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Myself, it thought it would be easier to hardwire an H bridge control from GPIO, but move all the other sensors to I2C. At the end, I2C is probably better for everything to avoid discrete GPIO.&lt;/p&gt;&lt;p&gt;I have built some bigger vehicles using Power Wheel Cars as the chassis, using generic&amp;nbsp; 50A H bridges.&lt;/p&gt;&lt;p&gt;I do want any i2C board to provide external analog outputs to allow me to drive bigger H bridges&amp;nbsp; with direction bits and PWM :-)&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am especially interested how you design the I2C and code the PI for it. I wanted to do a similar project to yours, and include commercially available sensors, but havent got past the point of asking the Pi for all the I2C drop numbers. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;good Luck, we all are watching with great interest.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8517&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino DC Motor Control with Encoder, Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1</link><pubDate>Thu, 02 Jan 2020 19:48:20 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1297305f-991a-4556-87d1-48d1c95d3eea</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Good post.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8517&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino DC Motor Control with Encoder, Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1</link><pubDate>Thu, 02 Jan 2020 15:13:41 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1297305f-991a-4556-87d1-48d1c95d3eea</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Frank,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Great project! I think you did the right thing choosing a powerful ARM chip. Easier to later simplify. I used a MSP430 DIL package device for my hobby-servo controller, but later regretted it due to lack of resources for all the extras I wished to add later : (&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8517&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino DC Motor Control with Encoder, Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1</link><pubDate>Thu, 02 Jan 2020 13:36:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1297305f-991a-4556-87d1-48d1c95d3eea</guid><dc:creator>dubbie</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I&amp;#39;ve been interstedin motors, especially DC motors for a while. I made one out of Lego and wire, plus magnets many years ago and I was astonished that it actually worked. Later I made a much larger open frame DC motor of about 25 cm diameter, using plasma cut laminations. It worked but not as well as I had hoped as the plasma cutter just wasn&amp;#39;t accurate enough to produce perfectly round laminations so the air gap varied 1-2 mm which prevented me getting a really small air gap. Plus the laminations warped. I had a very chunky power supply so didn&amp;#39;t have to worry too much about the number of turns in the windings. It went round relatively well as some speed, but had quite a poor torque output. It also made a great deal of noise when run to the limits so everyone stood well clear. Still, it didn&amp;#39;t actually explode so I was very pleased. Nowadays I stick to the smaller DC motors such as you are using and I will be very interested to see how you implement I2C control as well as P and I methods.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dubbie&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8517&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino DC Motor Control with Encoder, Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1</link><pubDate>Thu, 02 Jan 2020 11:44:05 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1297305f-991a-4556-87d1-48d1c95d3eea</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;The startup ramp at 2:20 seems to be the startup ramp of the PSU. I&amp;#39;d expect that ramp to be non-existing if the encoder is powered by a separate supply that has stabilised. You&amp;#39;d only see a difference in frequency of the decoder signals.&lt;/p&gt;&lt;p&gt;&lt;em&gt;edit:&lt;/em&gt; you want to use the two signals from the encoder because they will give you direction and will by default help with switch bounce issues.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8517&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino DC Motor Control with Encoder, Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/simple-arduino-dc-motor-control-with-encoder-part-1</link><pubDate>Thu, 02 Jan 2020 10:09:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1297305f-991a-4556-87d1-48d1c95d3eea</guid><dc:creator>Andrew J</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I shall follow along with interest - I’d like to have a go at a simple robot and motor drive this year.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8517&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>