<div dir="ltr">Thanks, Clay!<div><br></div><div><div>Clayton Timmons wrote:</div><div>> Welcome BAAHCK Eric!</div><div>> Always fun to get back to robotics.   Hope all is well in Costa Rica.   Would<br></div><div>> love to chat and catch up.</div><div><br></div></div><div>Come on down!  jajaja.  I've got the coffee on... a nice roasted blend of beans</div><div>from our own farm out back -- just kidding!  I do have coffee plants growing but</div><div>they are mostly for show, we drink coffee we buy from the super in a bag.  ;-)</div><div><br></div><div>I expect today is the big Robot day in our house.  Our parts from which we hope</div><div>to build Rayo Pinky-Pie should have cleared customs yesterday and last night</div><div>would have hopped a truck to the base of our volcano.  I'll head on down to pick</div><div>them up this afternoon after I get confirmation they've arrived.</div><div><br></div><div>So... I've never seen an Arduino before, but that seemed to be a goto brain for</div><div>the simple robot these days.  I ordered an Arduino Uno, some "TT" gear motors</div><div>with shaft encoders, the Pololu TB6612FNG H-bridge motor driver, a couple of</div><div>HC-SR04 tweeters, a 10-80 cm Sharp IR sensor, the TCS3200 Color Sensor from</div><div>Waveshare, the Pololu QTR-8RC reflectance array, a pair of foto interrupters to</div><div>read the wheel encoders, an HS-422 servo, 2 7.4v LiPo battery packs and the</div><div>DFR0205 25W DC-DC converter from DFRobot.  Plus a few sets of the basics<br></div><div>our new Robot Lab lacks (variety packs of resistors, capacitors, hex standoffs,</div><div>breadboard, jumpers, wire stripper, multimeter, etc.)</div><div><br></div><div>If we can swing it all in time, we'd like to show the Robot with these skills:</div><div><br></div><div>    Line Following (QTR-8RC LED array)</div><div>    Find the Color (TCS3200 sensor)</div><div>    Avoid Obstacles / Find Door (HC-SR04 & Sharp IR sensor)</div><div>    Precision Driving (wheel encoders, odometry)</div><div><br></div><div>After studying the Arduino pins a bit, our current plan is to hook up thusly:</div><div><br></div><div>    Arduino Uno powered directly from 7.4v LiPo via Power Jack</div><div>    Motors powered via 7.4v LiPo >> DFR0204 converter >> 6v</div><div><br></div><div>    Arduino Uno pins:</div><div><br></div><div>        A0 - Sharp IR Vo</div><div>        A1 - QTR LED 3</div><div>        A2 - QTR LED 4</div><div>        A3 - QTR LED 5</div><div>        A4 - QTR LED 6</div><div>        A5 - TB6612FNG STBY</div><div>        D0 - External Interrupt from Motor A Encoder DOUT</div><div>        D1 - External Interrupt from Motor B Encoder DOUT</div><div>        D2 - S3 Color Filter Select TCS3200</div><div>        D3 - S4 Color Filter Select TCS3200</div><div>        D4 - OUT Color Frequency TCS3200</div><div>        D5 - PWM for HS-422 Servo</div><div>        D6 - PWMA for Motor A via TB6612FNG H-bridge</div><div>        D7 - AIN1 Motor A Direction via TB6612FNG H-bridge</div><div>        D8 - AIN2 Motor A Direction via TB6612FNG H-bridge</div><div>        D9 - PWMB for Motor B via TB6612FNG H-bridge</div><div>        D10 - BIN1 Motor B Direction via TB6612FNG H-bridge</div><div>        D11 - BIN2 Motor B Direction via TB6612FNG H-bridge</div><div>        D12 - ECHO from HC-SR04</div><div>        D13 - TRIG from HC-SR04</div><div><br></div><div>Of course that runs us out of pins and I've only got 4 of the 8 LEDs for the</div><div>line sensor array hooked up.  We can live with that, but six would be better!</div><div>I didn't think about ordering any sort of shift-register or pin multiplexor stuff,</div><div>nor did I plan for using the I2C or SPI interfaces.  So I've been mulling over</div><div>our options...  I can wire STBY on the H-bridge HIGH so it is always enabled</div><div>to free up A5 and the turn on LED pin of the TCS3200 HIGH to always have</div><div>the color sensor LED on so no need to waste a pin for those.</div><div><br></div><div>I've been trying to figure out if I can double-up on a pin or two to free some</div><div>up for either more LEDs from our line sensor or to read a useful button state.</div><div>Maybe we'll forgo using both the HC-SR04 and the Sharp IR in the same</div><div>configuration and gain a pin or two that way.  I'd like to keep everything we</div><div>might use connected to minimize stress and error on Science Fair day, but</div><div>maybe we'll have to reconsider that and be prepared to carefully disconnect</div><div>something to connect something else.  However we are a team consisting</div><div>of a 5 year old who is a bit clumsy, a 6 year old who is most insightful and</div><div>in the end will become the creative inventor, and a 7 year old who is very</div><div>careful with his things.  I think our 7 year old could manage carefully undoing</div><div>or redoing a jumper wire with practice...  Maybe all of this could be done</div><div>using switches on a breadboard.  Yeah, that would be safer.  Too bad I</div><div>didn't think about ordering some nice sized breadboard switches.</div><div><br></div><div>Already I know we will wish we had more parts, but until I see how this flies</div><div>with customs and import tax I thought we ought to get our basic rig going</div><div>and then think about fancy.</div><div><br></div><div>I found the RobotShop.com to be a wonderful one-stop shopping place which</div><div>could consolidate all of our basic ingredients into a single shipment which</div><div>simplifies things with my freight forwarder and Costa Rican customs.</div><div><br></div><div>If anyone has any insight on our sensors or pin plan I'd love to hear it.  I</div><div>had to plan this out in theory and take a one-shot leap of faith on almost all</div><div>of it.  Once we get rolling and the kids start playing with LEDs I'll be happy.  ;-)</div><div><br></div><div>BTW, thanks to all involved with putting up such nice videos on DPRGclips.</div><div>They are inspiring and very instructive.</div><div><br></div><div>It looks like our mailing list doesn't handle including pics, but I'll attach my</div><div>pin plan in case it makes it through.</div><div><br></div><div>Thanks again for any feedback and insight on an Arduino Uno based bot.</div><div><br></div><div>--</div><div>Eric</div><div><br></div><div><br></div></div>