#robotics Logs
Nov 03 2012
#robotics Calendar
13:54 mtrg hi -- which sort of a motor is recommended for an indoor wheeled robot that weights (in total) ~40kg
14:18 rue_house mtrg,
14:18 mtrg rue_house:
14:19 rue_house I'd suggest one about 4cm diamiter, about 7cm long with a gearbox of about 20:1 or better,m but no more than 50:1
14:20 rue_house I wouldn't suggest more than 60RPM on the output
15:15 mtrg rue_house: but what type of motor, brushless dc?
16:38 rue_house no brushed
18:01 zor_ hi
18:05 zor_ As anyone used small scale pneumatics in a robot?
19:42 rue_house yes
19:43 Tom_itx such a chatty bunch
19:47 rue_house a person could dissapear for a week and not notice
19:49 rue_house hmm
19:49 rue_house I dont think my new mchine has a parallel port
19:50 rue_house can I flash the U2 board into a usb progrmmer?
19:50 Tom_itx yes
19:50 rue_house know what to use for that?
19:50 Tom_itx you'll have to dig out the program pins
19:50 Tom_itx yes
19:51 Tom_itx you could just download my hex to it
19:51 Tom_itx it would work
19:51 Tom_itx it's got a couple extra features but all you need is the isp pins
19:51 Tom_itx i can give you the pinout
19:51 rue_house dig out?
19:51 Tom_itx i've done it with both the U2 and the U4
19:52 rue_house well, lets have it! :)
19:52 Tom_itx the hex is on my website
19:52 rue_house on the U2 you marked the sck, mosi and miso pins
19:52 Tom_itx http://tom-itx.dyndns.org:81/~webpage/boards/USBTiny_Mkii/USBTiny_Mkii_index.php
19:53 Tom_itx 120318
19:53 Tom_itx use the windows studio version
19:53 Tom_itx it works on linux with avrdude too
19:54 rue_house do i need to hard flash that or can I use the bootloader
19:54 Tom_itx use the bootloader with FLIP or DFU programmer
19:54 Tom_itx if you use isp you'll screw up the bootloader
19:54 Tom_itx take the HWB pin low, then pulse reset to enter program mode
19:55 Tom_itx so both are low at the same time but hwb is low first
19:55 Tom_itx all you want is isp right?
19:55 rue_house the HV adapter looks like a tight board to assemble
19:55 rue_house yea, just isp
19:56 Tom_itx MISO-PB3
19:56 Tom_itx MOSI-PB2
19:57 rue_house the rescue has the bootloader?
19:57 Tom_itx SCK-PB1
19:57 Tom_itx no
19:57 Tom_itx ignore that
19:57 Tom_itx use the one i said
19:57 rue_house why is there a avrdude and a studio version?
19:57 rue_house yea
19:57 rue_house just curious...
19:57 Tom_itx the rescue has a clock output
19:57 rue_house aaah
19:57 Tom_itx it's for avrdude on windows
19:57 Tom_itx ignore it
19:57 Tom_itx use the one i said
19:58 Tom_itx jungo vs libusb drivers
19:58 Tom_itx for windows
19:58 Tom_itx the studio one is the one you want
19:58 Tom_itx the first on the list
19:58 Tom_itx RST-PB4
19:58 Tom_itx got all those?
19:58 Tom_itx GND
19:58 Tom_itx VCC
19:58 Tom_itx that's 6
19:59 Tom_itx HWB is PD7
19:59 Tom_itx ground that
19:59 Tom_itx then pulse reset to enter program mode for FLIP or DFU
19:59 Tom_itx via USB
19:59 rue_house heh slow down, roommate is pointing out we have to go shopping and were running out of time
20:00 Tom_itx RESET-pin 24
20:00 Tom_itx it's all there now
20:01 Tom_itx just wires to hook up, no resistors etc
20:01 rue_house I think the switch on this board was power source selection
20:01 Tom_itx yes
20:02 Tom_itx you want usb power
20:02 rue_house iirc the button is reset
20:02 Tom_itx maybe
20:02 Tom_itx it has a button?
20:02 Tom_itx lemme pull up that schematic
20:02 rue_house you silk screened in the HWB too
20:02 Tom_itx oh it's already pulled low too
20:03 Tom_itx all you need to do is push the button then
20:03 Tom_itx and it's in program mode
20:03 rue_house just like programming it beofre than
20:03 Tom_itx yep
20:03 Tom_itx just different hex file
20:03 rue_house think I used dfu
20:03 rue_house gee, that was a while ago
20:04 rue_house dfu-programmer is installed
20:04 Tom_itx select the at90usb162 as the target chip
20:04 Tom_itx actually select the U2
20:05 Tom_itx the hex is the same for both
20:05 Tom_itx on this anyway
20:05 Tom_itx you will have to select U2 because DFU sees that
20:05 rue_house now, wheres that usb cable......
20:06 rue_house hmm, need to get a usb hub...
20:07 rue_house damnit, I better go shopping now
20:09 rue_house maybe I can just flash it first
20:09 Tom_itx mkay
20:09 Tom_itx then all you need is wires
20:09 Tom_itx you can run the target from it if you want
20:10 rue_house I think it worked
20:10 rue_house hmm what avrdude command would it accept with no avr attached
20:10 Tom_itx well,
20:11 Tom_itx you can put a led on a pin and see
20:11 Tom_itx lemme see...
20:11 rue_house it emulates an avrisp?
20:11 Tom_itx avrisp mkii yes
20:11 Tom_itx select avrisp2 in avrdude
20:12 Tom_itx PB5 PB6 show USB good
20:12 Tom_itx and READY
20:12 rue_house zippo:/files/programming/src# avrdude -c avrisp2 -p m32 -e
20:12 rue_house avrdude: stk500v2_ReceiveMessage(): timeout
20:12 rue_house stupid...
20:12 Tom_itx so one will blink then the other will go steady
20:13 rue_house I'll hook an avr to it... after groceries :)
20:13 Tom_itx k
20:13 Tom_itx i forget what that error is
20:14 Tom_itx did you power cycle it after you programmed it?
20:15 rue_house avrdude decided to stick with the stk500 ^^^
20:15 Tom_itx just a sec, i've got a program line for it
20:16 Tom_itx avrdude -c avrisp2 -p m128 -P usb -C "C:\WinAVR\bin\avrdude.conf" -U flash:w:C:\avrtest\atmega128\blink_led.hex:a -e
20:16 rue_house see how much a usb hub costs from the drugstore,,,
20:16 Tom_itx you may or may not need -P USB
20:16 Tom_itx with linux
20:16 Tom_itx i forget
20:17 Tom_itx that's under my 'linux' notes though
20:17 rue_house zippo:/files/programming/src# avrdude -c avrisp2 -p m128 -P usb -e
20:17 rue_house avrdude: AVR device initialized and ready to accept instructions
20:17 rue_house Reading | ################################################## | 100% 0.01s
20:17 rue_house avrdude: Device signature = 0xffffff
20:17 rue_house avrdude: Yikes! Invalid device signature.
20:17 rue_house Double check connections and try again, or use -F to override
20:17 rue_house this check.
20:17 rue_house avrdude done. Thank you.
20:17 rue_house zippo:/files/programming/src#
20:17 rue_house that sounds like success to me
20:17 Tom_itx k
20:17 Tom_itx what did you do?
20:17 rue_house I also power cycled it
20:18 Tom_itx k
20:18 Tom_itx sounds like you're set
20:18 rue_house I'll make a programming cable when I come back and attach it
20:18 rue_house try it out
20:18 Tom_itx nice thing is, it works with avrdude or studio now
20:20 Tom_itx you can use the U4 the same way but you need to recompile the source
20:20 Tom_itx i've done it
21:19 rue_house heh, grocery store wants $54 for a usb hub, screw that
21:27 Tom_itx rue_house, help brittania unbrick her avr
21:27 Tom_itx i'm tired
21:28 Tom_itx i had her get a 555 to hook up to it