#robotics Logs
Dec 19 2015
#robotics Calendar
00:31 theBear Loshki, it's true, tho if he ain't quick i probly bump into a real foreign person pretty soon, between the housesitting in the country a few hours south where probly 2/3 of the entire population are still 1st gen or 0day-gen migrant 'talians, and a couple other friends of friends, i bumpin into them i-talians a lot recently
00:31 theBear and i'm not alesan can help, cos we also can't hear him :)
00:36 Loshki theBear: well, I took a year of Eyetalian, and it's one of those languages where the spelling and pronunciation are extremely regular, so there aren't a lot of degrees of freedom in the pronunciation. arr-doo-wee-no or arr-dyoo-wee-no are about it.
00:54 theBear man, i had more than a year, plus visits to grandad him and whoever he talked to would be no egnlish involved probly 80% or more of all the time and talking
00:56 theBear but very little remains, on the other hand my butchery of spanish, german AND french that i currently am a little into, are all coming along swimmingly ! almost daily my vocabularies are growing, allowing me to more effectively, and perhaps with more appropriately pronounced/accented speech in some cases, butcher all 3 languages to an even greater and more disgusting manner :)
01:12 anonnumberanon That cat humanoid biped dancing on Jap sic was so cute.
01:12 anonnumberanon gd morning
04:04 anonnumberanon BitBanger the cheap combat robot is born.
04:07 anonnumberanon And there are a lot of Bs in this sentence, yeah baby!
04:08 Snert too Bee or knot two bee.
08:16 anonnumberanon Okay I've drafted my variable servo speed method.
08:22 deshipu anonnumberanon: combat?
08:23 anonnumberanon Yeah it's a for the Robo-One competition.
08:24 deshipu so, robot judo?
08:25 deshipu no lasers and death rays?
08:30 anonnumberanon Oh for the times when the robot won't be busy punching and kicking others and lifting them into falling, it may also use a burning laser or jam the other R/C signals.
08:32 anonnumberanon But weapons and radio jamming are not allowed..
08:42 akem i wonder if they have AI fight at robo-one no RC?
08:43 akem that would be fun tho, hijack the RC signal and make the opponent run out
08:43 akem 'common you gotta fight! stay on the ring' :)
08:44 anonnumberanon That would be too hard. Just highjack the signal and send all 0s. Robot just starts doing random things. Time it exactly during your robot's attack so it does not look suspicious and is believed to be a direct effect of the physical attack.
08:46 akem damn it anonnumberanon
08:46 anonnumberanon :) what?
08:47 akem i got my serial in/out ok except for my ch340 arduinos there is driver but cant get it to work
08:48 mulvane My son has a rather expensive glockenspiel he would like to convert and use for various projects such as a door chime. I'm looking for the easiest way to do this. Any idea of a small actuator that could be used with a fast enough response for musical use?
08:49 anonnumberanon akem, are you using the Arduino IDE?
08:50 akem anonnumberanon yea but for the computer serial part its just java and 'mik3y serial usb' package
08:50 anonnumberanon mulvane, do you need one actuator for each note? that's what I would do.
08:51 anonnumberanon are you using linux or windows
08:51 akem i got it working full speed with cdc/cam chip normal arduino uno
08:51 mulvane anonnumberanon Exactly.. 1 per each.
08:52 mulvane Evetually plan is to use pwm to also be able to dial in how hard it strikes.
08:52 mulvane I can use either... Well, no linux.. I'm a bsd guy
08:52 anonnumberanon nah i was asking akem
08:53 mulvane Didn't think the question seemed relevant :-)
08:53 SpeedEvil mulvane: a small servo
08:53 SpeedEvil oh
08:53 akem anonnumberanon android, but its just the ch340 chip
08:53 anonnumberanon mulvane, http://www.hobbyking.com/hobbyking/store/__84__189__Servos_Parts-All_Servos.html
08:53 anonnumberanon the first one would seem good enough it's like the weakest
08:53 anonnumberanon cheapest
08:53 akem anonnumberanon i also have windows
08:54 anonnumberanon mulvane, you'd be able to hit the note in 120 miliseconds if that's fast enough
08:54 anonnumberanon akem, is this what you are experiencing? http://www.avrfreaks.net/forum/arduino-nano-ch340-serial-usb
08:54 anonnumberanon Win7 keeps complaining that the USB device is not recognized
08:55 mulvane Those should work. I was thinking linear actuators... But servos should work nicely.
08:56 anonnumberanon linear actuators are slow from what I've seen
08:56 anonnumberanon servos make a bit of noise though
08:56 anonnumberanon unless you put them in a tight box
08:57 mulvane I could build a nice wooden enclosue with bristles for the mallets to pass through.
08:57 anonnumberanon good idea
08:58 anonnumberanon if you're attacking the whole mallet, depending on it's size go for a bit stronger servo maybe
08:59 akem anonnumberanon its recognised by the OS but not by the java app, the last driver version i have is crashing will try again later, but i could get also 1 more USB cable thing is i ordered some other ch340 arduinos, so i hope ill get this sorted out still interesting to serial in/out
08:59 robotustra_ BMX-055?
08:59 robotustra_ who worked with it?
08:59 mulvane Thanks for the input. Will use servos. Just buy a few and see which one I like best for the build. Need 30 servos total.
09:00 anonnumberanon mulvane, you may need this then if you aren't interested in making your own http://www.robotshop.com/en/lynxmotion-ssc-32u-usb-servo-controller.html
09:02 mulvane Sweet. That's exactly what I was looking for.
09:02 akem any of you built a sentry gun using servos already?
09:02 mulvane That and a small arm board like an orangepi
09:02 anonnumberanon robotustra_, I've used the MPU6050 that has the same capabilities, this technology is really amazing
09:03 anonnumberanon mulvane, yeah or an arduino uno would be enough for any song you wanna play, and easier to use
09:03 anonnumberanon if you can bother to record each note from a music score into your program
09:03 anonnumberanon You'll have to anyway.
09:04 anonnumberanon akem, plenty of examples of that on Youtube
09:04 mulvane Yeah. I've been looking for ways to convert sheet music already.
09:04 anonnumberanon so why do you need a java app akem? because it's not a real arduino or something?
09:05 anonnumberanon mulvane, maybe some software that listens to a song and detects the pitches
09:05 anonnumberanon if there is such a thing
09:07 akem anonnumberanon its the serial console on the computer side, its well integrated thats why: https://github.com/mik3y/usb-serial-for-android
09:10 anonnumberanon akem, what kind of error are you getting? are you even getting an error message when you start listening for the serial data?
09:13 akem either its not seen by the app, but seen by the OS, or for the last version its crashing, but no one use it here apparently will look on the forum or something, anonnumberanon what are you using for serial on the computer side?
09:14 akem C/C++ USB with some library?
09:14 robotustra_ anonnumberanon: did you use it with arduino?
09:15 anonnumberanon robotustra_, yeah Arduino Uno
09:16 robotustra_ i2c?
09:17 anonnumberanon akem, just the Arduino IDE because i haven't taken the time to find another app, there is CuteCom that I tried but that did not work out of the box (tried it on Debian Linux) and I don't have time to troubleshoot it right now.
09:17 robotustra_ did you write code yourself or got some examples?
09:20 anonnumberanon robotustra_, there are no examples for these chips, it's hard to find good code that is also easy to use as a noob. i really struggled while using it for my senior design project
09:21 robotustra_ did you use standard i2c?
09:22 anonnumberanon i forget , either i2c or spi.
09:22 anonnumberanon oh i also bought the adafruit one and it had Arduino exemples
09:23 anonnumberanon i started with that but then the code that i had to write for the quadcopter that was actually around the example code was too hard for me
09:24 anonnumberanon it came to me a few days before deadline for the project but it was too late so i used something i found online for the mpu6050 instead
09:29 anonnumberanon akem why not this https://play.google.com/store/apps/details?id=com.liorhass.android.usbterminal.free&hl=en
09:30 anonnumberanon ● No root required
09:30 anonnumberanon ● Arduino. FTDI-based (e.g. original Arduino Uno), CDC-based (e.g. Arduino Uno R3) and CH340-based (e.g. cheap Arduino clones)
09:33 akem anonnumberanon its an app, you cannot integrate it with some other code, but yes it support ch340
09:33 akem ive seen it, did not try
09:34 akem anonnumberanon The android arduino IDE also does fine with it
09:35 akem actually better than my cdc/cam one
09:39 anonnumberanon So you want to put the serial reading code in a C program or in a Java program?
09:39 anonnumberanon What are you programming in?
11:46 rue_house the OS is what supports the ch340
11:46 rue_house the program uses the OS' hardware abstracton to just talk to the port the drivers create
11:57 veverak deshipu: ad. trimming the tote servos
11:57 veverak really thinking about making simple arduino program, that would allow you to set posiiton of each servo
11:57 veverak like ie sending two-byte commands
11:57 veverak when first byte is servo number, second is angl
11:57 veverak e
11:58 veverak and making simple terminal app for pc in python to set it up
11:58 deshipu veverak: yeah, I need to get down and write it
11:58 veverak arduino part: easy
11:58 veverak computer parT: should be easy too :)
11:58 deshipu the whole thing is easy
11:58 deshipu that's the problem
11:58 deshipu boring
11:59 veverak :D
11:59 veverak well
11:59 veverak I was also thinking if for my purposes
11:59 veverak it would make sense to write program for arduino
11:59 veverak that would sort of simulate maestro protocol
11:59 veverak :)
11:59 deshipu that protocol is pretty awful
11:59 veverak ok
12:01 veverak deshipu: itneresting would be to make it autocalibrate
12:01 veverak :
12:01 veverak :)
12:01 rue_house nobody is gonna use the awesome servo controller I made
12:01 veverak ?
12:01 veverak rue_house: more info plz
12:01 anonnumberanon rue_house, picture
12:01 veverak meantime I am going to take bath
12:02 rue_house 8 servos, 24000 counts of position, rock stable timing
12:02 deshipu https://www.youtube.com/watch?v=mRZVCSIe4VI <-- robot singing pachebel's canon with its motors
12:02 rue_house 9600 baud, 4 byte packets
12:02 rue_house atmega328
12:02 deshipu rue_house: we need 12
12:02 rue_house with the ability to cache positions and execute them at ocne
12:02 rue_house its only 8 because the timing of the pulses is PERFECT
12:03 rue_house oh, and you can gang up to 4 on a serial bus
12:03 rue_house you will not find 11+bits of poistion with rock stable timing on anything else
12:04 rue_house the ones that say they are 16 bits aren't even 7
12:04 deshipu I don't think the cheap servos we use would appreciate it enough for it to be worth the effort
12:04 jhylands each AX-12 servo has its own dedicated AVR microcontroller
12:04 rue_house and I have a C library for spooling positions to them
12:04 rue_house for linux
12:04 deshipu jhylands: I'm trying to put an attiny into a cheap 9g servo
12:05 deshipu jhylands: the way I have it now, it would only double its price
12:05 anonnumberanon rue_house, what is a position count?
12:05 anonnumberanon I mean, count of position.
12:05 rue_house anonnumberanon, its the resolution of the position you get
12:05 jhylands deshipu, the AX-12 has an ATmega8
12:06 rue_house if you ahve 7 bit, you get from 0-127
12:06 jhylands because it has a hardware UART
12:06 rue_house say, over 180 degrees thats 1.4 degrees
12:06 deshipu jhylands: yeah, I wonder why they use uart on them anyways
12:06 jhylands 1 megabit
12:06 rue_house my servo controller has a resolution of 24000
12:06 anonnumberanon rue_house, what is the deadband of most servos?
12:06 rue_house .0075 degrees
12:06 deshipu jhylands: seems like something like i2c would be much better suited
12:07 anonnumberanon in us please, degrees are for wimps
12:07 rue_house anonnumberanon, I wrote it cause the resolution and timing stability of everything that exists is crap
12:07 jhylands deshipu, I know, but I2C slaves are much harder to do, and they would have needed 4 wires instead of just 3
12:07 deshipu jhylands: actually no
12:08 anonnumberanon rue_house, what is the deadband of most servos?
12:08 deshipu jhylands: you can do i2c slave on an attiny using its USI circuit, and it only needs 2 wires, just like uart
12:08 rue_house MY controller has a resolution of 0.45 arc-minutes
12:08 deshipu jhylands: plus, it's a bus, so you don't need the repeater pins
12:08 jhylands yes, but you also need power and ground, so that's 4
12:08 deshipu jhylands: and with uart you need 6
12:09 jhylands the AX-12 bus is power/ground/data
12:09 deshipu jhylands: 2 for power, 2 for input, 2 for output
12:09 rue_house anonnumberanon, its less, but if you ask me, you want a pulse stream with a higher resolution than your servo anyhow
12:09 deshipu jhylands: so it's not uart?
12:09 jhylands its a half-duplex system, so the Tx and Rx sides are shared
12:09 deshipu so that's stil 5 pins
12:09 deshipu no, wait, 4
12:10 jhylands yes, we hook it directly to the AVR UART pins, but you need to switch on and off each side of the UART depending on if you're transmitting or receiving
12:10 jhylands no, its 3
12:10 deshipu you need one more for forwarding the uart to the next servo
12:10 deshipu because it's not a bus
12:10 jhylands no, they are all hooked to the same wire
12:10 jhylands it is a bus
12:10 deshipu so it's not uart
12:10 deshipu ?
12:10 jhylands its a bus that uses a protocol that is compatible with a UART
12:11 anonnumberanon on these servos for ex, it is 5 us, if you divide the range of motion (2400us minus 600us = 1800us) by that deadband, you get 1800us / 5us = 360.
12:11 jhylands because its half-duplex, they share the same wire for Tx and Rx
12:11 deshipu jhylands: one big advantage of i2c -- you don't need precise timing
12:11 anonnumberanon 360 is the resolution you actually need to do a kind of dirty job but still work
12:12 deshipu jhylands: I was recently thinking about using a single-wire protocol similar to that used by addressable RGB LEDs for servos
12:12 anonnumberanon which represents 9 bit...
12:12 rue_house hah I have 11+ bits
12:12 deshipu jhylands: you know, with short pulse for 0 and long for 1
12:12 jhylands anonnumberanon, the AX-12 servo has a 10-bit position for 0-300 degrees
12:12 rue_house hah I have 11+bits
12:12 jhylands deshipu, seems silly to reinvent the wheel
12:12 e_house thinks this is
12:12 onnumberanon me to
12:13 e_house posts the new
12:13 jhylands I need to head out again for a while
12:13 rue_house yea in 10 mins I have kids showing up
12:13 anonnumberanon So now can you make a servo with very low deadband?
12:14 jhylands anonnumberanon, its just a question of how precise the combination of gearbox and feedback sensor are
12:14 rue_house it dosnt' matter if your signal generator can only step the servo 1.4 degrees and has 4us jitter
12:14 rue_house which is typical
12:15 rue_house as nobody knows how to write interrupt routines properly
12:15 anonnumberanon >nobody
12:16 anonnumberanon except all embedded engineers ever
12:18 armyofevilrobots @rue_shop3 @rue_shop2 Are you around today?
12:22 deshipu kids these days
12:25 rue_shop3 yea
12:25 rue_shop3 you need an 8 channel servo controller?
12:25 rue_shop3 :)
12:25 rue_shop3 someone does, they just dont know it yet
12:26 deshipu that's for sure
12:26 armyofevilrobots Heh. I actually was wondering if you had any of these: https://upload.wikimedia.org/wikipedia/commons/8/8f/IEC60320_C14.jpg
12:27 rue_shop3 tonnes of them
12:27 armyofevilrobots I need one for the new printer, and I am out of devices to cannibalize :(
12:27 anonnumberanon what takes only 8 servos? also have you measured the time it takes to tell your other micro which holds the next 8 servos to receive the positions orders? The difference should not take more than 0.5 to 1us
12:27 armyofevilrobots You going to be around in a couple hours?
12:27 rue_shop3 I had to strip down over 100 power supplies for hte transistors for the 12' mecha actuators
12:27 deshipu anonnumberanon: I have one quadruped that uses 8 servos
12:27 rue_shop3 I have to good the beutifull, and the ugly in those connectors
12:28 deshipu anonnumberanon: but it can't turn very well
12:28 rue_shop3 were talking from the ones that have the built in EMI filters and 1/4" spades to the ones that have no screw holes and 1/16" long solder pins
12:28 rue_shop3 I'm definitly around for a few hours
12:28 armyofevilrobots OK, Cool. My wife is going for a bike ride, so I’ll cruise over after that.
12:29 myofevilrobots out to watch the d
12:29 rue_shop3 were talking from 20A to something that you wouldnt trust with 2A
12:29 rue_shop3 were talking an incredible selection from black to grey
12:29 rue_shop3 ok, its JUST black and grey
12:30 armyofevilrobots 15A+ plz. It’s for a 800W 24V PSU. Gonna have some _oomph_ on those stepper drivers. ;)
12:30 rue_shop3 I wonder where the crate of them went..
12:31 rue_shop3 oh, and the ones with built in switches and fuses
12:31 rue_shop3 I love these boxes...
12:32 veverak :)
12:32 veverak nah
12:32 veverak fu writing protocols
12:32 veverak will use firamata again I suppose
12:32 onnumberanon like his perfect button tone for changing mode on his servo te
12:33 onnumberanon keeps pressing it like a nerd, and resetting the whole thing as well to hear the starting
12:33 rue_shop3 are yo uinterested in trying out mine?
12:33 rue_shop3 http://ruemohr.org/~ircjunk/robots/arm7/hobbydriver/
12:33 rue_shop3 that is the old version
12:33 anonnumberanon no need
12:34 veverak deshipu: btw
12:34 veverak firmata allready got fancy gui to use anything conencted to arduino
12:34 veverak as servo
12:34 rue_shop3 the new version I finished the cache part of the protocol and set it up so the base address is easier to change for ganging up 4 controllers
12:34 veverak http://firmata.org/wiki/Main_Page#Firmata_Test_Program
12:34 anonnumberanon mine does 10 servos with 6 us jitter, that's good enough for that stage of my project
12:34 rue_shop3 ugh
12:34 rue_shop3 ok
12:35 onnumberanon may adjust the timer's prescaler to reduce jitter if time to
12:35 anonnumberanon (timer 1)
12:35 rue_shop3 its ok rue, someone out there cares
12:35 veverak :D
12:35 anonnumberanon apparently you can get your pants down to less than 100 nanosecond ticks
12:36 rue_shop3 I wrote it cause I couldn't stand the way normal code has so much jitter the servos are always ticking
12:36 rue_shop3 and cause the resolution of most of them really does suck
12:37 anonnumberanon Make it into an Arduino sketch. Experience millions of page views. Profit.
12:37 anonnumberanon And cause you wanted to get down and dirty with the timers' inner workings :)
12:39 veverak rue_shop3: it's for arduino?
12:39 veverak it can make resolution on servo over 256steps/1000us ?
12:39 veverak can it handle 12 servos?
12:40 deshipu veverak: then use that for trimming?
12:40 veverak deshipu: exactly?
12:40 deshipu ah, but you only have pwm output on the pwm pins
12:40 veverak also servo output
12:40 veverak :)
12:40 anonnumberanon veverak, apparently you can use two arduinos connected via serial to get 16, but rue won't answer about how much lag between both microcontrollers
12:41 veverak (it has special case for servo)
12:41 deshipu ah, ok
12:41 veverak but not sure you can setup min/max range :/
12:41 veverak (it's propably hardcoded 1000-2000)
12:41 veverak anyway, you can do that in pyfirmata lib if you would want to
12:41 veverak (it's not needed for trimming I suppose)
12:44 veverak anonnumberanon: two arduinos?
12:44 veverak well, that lib sucks for me then :)
12:44 anonnumberanon he said like 3 or 4
12:45 anonnumberanon prolly 4, so 4 times 8 = 32
12:45 rue_shop3 veverak, no its C
12:45 anonnumberanon servos
12:45 rue_shop3 http://ruemohr.org/~ircjunk/robots/arm7/hobbydriver/
12:45 rue_shop3 I use a mega328 arduino board for it
12:45 rue_shop3 veverak, the resolution is 24000 steps/2ms
12:46 rue_shop3 0.5 to 2.5ms
12:46 verak ment arduino hw, not lang
12:46 veverak :)
12:46 veverak rue_shop3: than it would be awesome
12:46 rue_shop3 it does 8 servos/board, you can gang up to 4 boards
12:46 veverak except that I need 12 servos/board
12:46 rue_shop3 the new version can cache positions
12:46 rue_shop3 you can send them all out, and activate them all at once
12:47 veverak rue_shop3: increasing count of boards for small robots sucks hard
12:47 rue_shop3 for synconized steps
12:47 rue_shop3 I dont make small robots
12:47 rue_shop3 so I wouldn't know
12:47 veverak especially when I've got board that's designed to use one arduino to drive everything
12:47 veverak :)
12:47 rue_shop3 oh lag?
12:47 veverak sucks for me then, but maybe on different project one day :)
12:48 rue_shop3 how do you mean lag between controllers?
12:48 anonnumberanon rue_shop3, binary.h, is that for saving ram ?
12:48 rue_shop3 the update rate is 50Hz
12:48 rue_shop3 its a convienience thing for gcc versions that cant do base 2
12:49 rue_shop3 which used to be all of them
12:49 rue_shop3 the min/max range is 0.5ms to 2.5ms
12:49 anonnumberanon oh, interesting bit of history there
12:49 anonnumberanon no pun intended
12:50 rue_shop3 the servos are staggered 2.5ms apart, iirc
12:50 rue_shop3 no it must have been more
12:51 rue_shop3 heh, looks like I dont remember all the params
12:54 anonnumberanon <veverak> rue_shop3: increasing count of boards for small robots sucks hard
12:54 anonnumberanon that's ridiculous, it's not a crime to put two atmega328 on one board
12:55 veverak well
12:55 veverak it would cost me too much time
12:55 veverak A. learn to design boards with atmega
12:55 veverak B. design one
12:55 veverak C. beta-test it
12:55 veverak D. fail, repair design
12:55 veverak E. use
12:55 veverak well, nope nope nope :)
13:00 anonnumberanon i like your program rue_shop3
13:01 anonnumberanon can you include accelerometer input and calculations into it?
13:33 Hyratel repeat B,C,D as needed
13:35 anonnumberanon D. fail, repair design
13:36 anonnumberanon Lol but how do you repair a burned microcontroller?
13:36 anonnumberanon I had a double D.
13:38 anonnumberanon sucks that it's all soldered up to the proto board in the middle of 5 soldered components
13:39 anonnumberanon replacing the micro is not an optioni have eto piggyback it with another one
13:42 Hyratel anonnumberanon, uh
13:42 Hyratel slice it off at the legs, desolder each leg
13:42 Hyratel use socket
13:45 anonnumberanon Hyratel, my new prototype includes a socket yes. I wish I'd used that the first time around.
13:46 anonnumberanon also female headers are awesome
13:48 robotustra_ anonnumberanon: did you use pull up resistors for I2C bus?
13:49 anonnumberanon i used breakout boards
13:50 anonnumberanon gy-521
13:50 anonnumberanon http://www.amazon.com/Kootek-MPU-6050-MPU6050-sensors-Accelerometer/dp/B008BOPN40/ref=sr_1_1?ie=UTF8&qid=1450553161&sr=8-1&keywords=gy-521
13:52 anonnumberanon doesnt have a maneto though which is bad for a quadcopter not to have
13:52 anonnumberanon magneto*
13:52 Hyratel a magneto is something entirely else
13:53 anonnumberanon magnetometer*
13:53 Hyratel the word you want is 'compass'
13:53 anonnumberanon no
13:53 Hyratel just 'magneto' is tyhe spark generator for an engine
14:06 anonnumberanon veverak, deshipu according to servo.h changing the trims should be trivial, just need to add a trim mode to one of the buttons, or add a button, and go into trim mode and adjust them, then pushing the button again to get out of it
14:07 deshipu anonnumberanon: then you have to save it somewhere?
14:08 deshipu anonnumberanon: or do you want to repeat it each time you switch it on?
14:09 anonnumberanon Oh yeah I didn't think about that.
14:09 deshipu anonnumberanon: so there is EEPROM
14:09 anonnumberanon yeah that's the most obvious solution
14:09 anonnumberanon progmem or something?
14:09 deshipu no, progmem is for the flash
14:10 deshipu EEPROM is separate
14:10 deshipu anyways, it's not like this is a big problem, it's just that someone has to write the code, and I can't be bothered
14:10 deshipu I will write it, eventually
14:10 anonnumberanon #include <EEPROM.h>
14:10 deshipu I have time off until the end of the year
14:11 anonnumberanon veverak should write it
14:11 anonnumberanon https://www.arduino.cc/en/Tutorial/EEPROMWrite
14:11 deshipu and you can use the tv remote to trigger and control the trimming
14:11 deshipu you could even add learning the remote's keys
14:11 verak got exams in jan
14:11 deshipu and also store that in eeprom
14:11 anonnumberanon yeah. if it was me id make it so you have to press the button for at least 3 seconds before it actually takes effect
14:11 veverak so hope I will finalyl do something
14:12 veverak wow
14:12 verak never knew arduino got ee
14:13 deshipu it's only good for several thousand writes or so
14:13 anonnumberanon yeah veverak they are all equipped with 512 gigabytes SSDs didn't you know that? gosh
14:13 robotustra_ atmega has eeprom actually
14:13 anonnumberanon yeah, 1kB of eeprom
14:15 veverak I see
14:29 anonnumberanon I'm actually facing exactly the same challenge right now, although it's a bit more critical to make sure the robot stands straight. During construction i did make sure I kinda put the servo horns in the middle, but little errors add up..
14:30 jhylands deshipu, what's only good for several thousand writes?
14:31 jhylands the eeprom on an AVR is good for 100K writes
14:32 jhylands The FLASH memory is typically only good for several thousand writes
14:33 anonnumberanon Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
14:34 jhylands yeah, that sounds right
14:34 deshipu jhylands: I was exaggerating :)
14:34 jhylands ok
14:35 deshipu ok, so I have a Servo class for pyboard
14:36 jhylands nice
14:36 deshipu selecting the timers and channels for each pin is a pit
14:36 deshipu a
14:36 jhylands for the 4-built-in ports, or a more general
14:36 deshipu more general, there is one for the 4 ports already
14:36 deshipu I need 12
14:37 deshipu of course
14:37 jhylands ah, I see, you're going to do a quad with a pyboard?
14:38 deshipu actually, someone tried that with my Tote, and his code didn't work
14:38 deshipu so now I'm making a version that works for him
14:38 jhylands cool
14:38 jhylands I'm starting on the OnShape CAD model for my new quad
14:38 jhylands its going to be a cat, I think
14:39 jhylands I got tiny core linux booting on my raspberry pi 2 last night
14:39 jhylands it comes with MicroPython built in
14:39 anonnumberanon The same size of eeprom can be had for 41 cents and does a million write/erase cycles, connected via SPI.
14:40 jhylands This is what I'd like to build: http://www.cgmeetup.net/forums/uploads/gallery/category_3/med_gallery_3_3_123910.jpg
14:40 jhylands but its going to be a little simpler, at least at first
14:42 deshipu jhylands: are you going to use servoblaster or a separate... ah nevermind, AX-12
14:42 anonnumberanon lol
14:42 jhylands heh, silly question
14:43 deshipu sigh
14:45 anonnumberanon You're gonna have fun drawing the 3D printed parts for such a project.
14:47 jhylands yeah, for sure
14:47 jhylands I really really like OnShape
14:47 jhylands although I have to boot up my laptop in Windows, because all my bioloid bracket models are in Rhino format
14:47 jhylands so I need to export them in STEP format so I can import them into OnShape
14:47 jhylands I only have a couple of the brackets right now
15:08 robotustra_ anonnumberanon: I actualy runned an example
15:08 robotustra_ it works
15:09 robotustra_ I owe a beer for some guy who did an example according to licence
15:09 robotustra_ :)
15:11 robotustra_ jhylands: hi, could you please give me links to your robot's pages
15:12 jhylands all of them?
15:12 jhylands I don't really have a single page with them all
15:12 robotustra_ that's the reason why I'm asking
15:12 jhylands many of them are either on my blog (blog.huv.com) or on my main site (www.huv.com)
15:13 robotustra_ I can't find all of them from your blog
15:13 jhylands or my YouTube channel (JonHylands)
15:13 jhylands www.huv.com/miniSumo for my sumo bots
15:13 robotustra_ I'm interested in robot with eyes and claws
15:15 jhylands if you go to google images, type in "microraptor huv" without the quotes
15:21 robotustra_ ok
15:21 jhylands you can do the same search, but substitute brainbot for microraptor
15:21 robotustra_ ok
15:34 deshipu ok, got it walking with pyboard, more or less
15:35 deshipu had to power the pyboard from usb, seems it doesn't like the 3.7V lipo
15:38 robotustra_ bmx055 works good
15:40 jhylands deshipu, yeah, you have to power it with either 3.3 or 5 volts
15:40 SpeedEvil http://imgur.com/gallery/t1GSKkq
15:40 jhylands LOL
15:41 onnumberanon feels dehipu feels like getting a fat large hex
15:41 deshipu jhylands: I was too scared to connect the lipo to 3.3V pin
15:41 deshipu jhylands: arms are not as forgiving as avrs
15:43 robotustra_ deshipu: video?
15:44 deshipu robotustra_: it's the same gait as with the arduino, the raspberry pi and the teensy -- nothing new
15:44 deshipu https://www.youtube.com/watch?v=_RqtMg66i5g <-- by the way, the evolution of my robots
15:46 jhylands deshipu, all the digital I/O pins on the pyboard are 5 volt tolerant
15:46 jhylands not in analog mode, mind you, just digital inputs
15:46 anonnumberanon wtf lol not analog
15:46 anonnumberanon you can't measure 5v with the ADC?
15:47 deshipu anonnumberanon: nope
15:47 deshipu the adc is 3.3V
15:47 anonnumberanon well i guess that makes sense since your voltage dividing from your actual 3.3 anyway.
15:48 jhylands yeah, I normally power those from a 2-cell lipo, and I use a 5K/10K voltage divider to measure battery voltage using an A/D
15:48 deshipu same here
15:49 jhylands its a 3.3 volt chip, anonnumberanon, so the fact that it can handle 5 volt inputs is pretty amazing
15:49 jhylands most can't
15:49 deshipu I fried a rpi with 5V uart
15:49 deshipu it worked for some time
15:49 jhylands heh
15:49 anonnumberanon i know of these things i have a radio chip that wants 3.3v power but is okay with 5v from atmega avr
15:50 anonnumberanon sorry, for all the other pins than power
15:50 deshipu I'm trying to stay at 3.3V these days anyways
15:50 deshipu even using 3.3V pro minis
15:50 robotustra_ deshipu: cubie bot :)
15:50 deshipu robotustra_: that was my first
15:51 deshipu robotustra_: I still have it, with upgraded servos on legs, but I don't have the motivation to work on it
15:51 jhylands nice thing about the Sharp analog IR range finders - they are a 5 volt part, but the analog signal it returns never goes above 3.3 volts
15:51 jhylands so you can use them with a pyboard as long as you have 5 volts to power them
15:51 deshipu jhylands: but they require 5V power :(
15:52 jhylands I normally power my boards with 5 volts
15:52 deshipu jhylands: I actually switched to other sharp sensors, on pololu breakouts
15:52 jhylands and use a small SOT-23 3.3 regulator
15:52 deshipu jhylands: just because those can work with 3.3V
15:52 jhylands deshipu, yeah, those ones are nice also
15:52 deshipu https://www.pololu.com/product/1134 <-- those
15:53 deshipu and I bunch of those time-of-flight IR sensors, but QNF package is hard to solder without a heat gun
15:53 deshipu they are so tiny
15:53 jhylands reflow oven
15:53 jhylands although I have a reflow hot-air workstation gun thing also
15:53 deshipu http://hackaday.com/2015/02/18/new-part-day-time-of-flight-sensors/ <-- those
15:53 deshipu jhylands: I do it all at home, I don't even have a garage
15:54 jhylands I do it all at home also, but I have a pretty extensive maker space in my house/office
15:55 deshipu I don't, so anythig bigger than, say, a shoe is out of question
15:55 deshipu I do have a fablab nearby, and I use their heat gun sometimes
15:56 jhylands ah, okay - I work from home, and part of my job is building stuff, so I need space for that which happens to mesh well with my hobby
16:00 deshipu I work from home, but my job is strictly sofytware -- I build stuff while it's compiling ;)
16:00 deshipu software*
16:01 deshipu hmm... I wonder if I can reverse a servo by switching the motor and pot leads inside
16:06 robotustra_ deshipu: why not
16:06 robotustra_ I think you need to switch potenciometer only
16:06 deshipu that will give you a servo with a positive feedback loop
16:07 deshipu which means it will go to one of its limits as fast as possible, depending on which one is closer
16:48 robotustra_ https://www.youtube.com/watch?v=c1Qg5IViT3c&feature=youtu.be
16:56 deshipu robotustra_: does the data make sense? :P
16:57 robotustra_ yes
16:58 robotustra_ it should be averaged, but it is
16:59 robotustra_ it shows g along axiz Z
17:00 robotustra_ when I turn it - it change direction accordinaly
17:00 robotustra_ quaternion is also calculated ok
17:01 deshipu looks pretty noisy
17:02 robotustra_ yeah, because there are not so much averaging
17:03 robotustra_ it's just an example of code taken form internet
17:03 deshipu are you sure averaging is what you want?
17:03 robotustra_ I succeed to run it from the second attempt
17:03 deshipu that's effectively a low-pass filter
17:04 robotustra_ quaretnion is averaging values
17:04 robotustra_ it's look ok and stable
17:05 robotustra_ the only thing I hate - I have to calibrate magnetometer, I want to exclude it from quaternion
17:05 Jak_o_Shadows The magnetometer has a self-test mode though?
17:07 robotustra_ yes, probably, I didn't read datashit carefully yet
17:09 armyofevilrobots @rue_house
17:10 armyofevilrobots That wood was probably bubinga. We bought some boards from a dude named Edwin up in Roberts creek, and it looks identical. They are recycled floorboards from some factory in the tropics.
17:11 Jak_o_Shadows Otherwise it's knda hard to calibrate isn't it
17:11 anonnumberanon Man I finished my remote controller and it's freaking awesome.
17:13 robotustra_ I have to shake this device in the figure of eight
17:13 robotustra_ but how can I do this when I'll attach it to the base?
19:27 rue_house armyofevilrobots, wow, cool
20:06 Casper rue_house: do you know where to get some twistlock connector cheaply? L5-20R and P, need 3 pairs, and also some gauge 10 3 conductors
20:23 jhylands deshipu, front left leg: http://puu.sh/m1U1O/dda910e7ae.png
20:53 Hyratel ugh. tired and more than a little bit arm-sore from dismantling the old washing machine. got it broken down to where all the sheet metal is flat pack and the basket/bucket has the motor removed
21:49 robotustra_ not bad https://www.youtube.com/watch?v=K15FfdML6mk
21:56 robotustra_ biped https://www.youtube.com/watch?v=_wjPEMkPJkM
21:58 robotustra_ lol https://www.youtube.com/watch?v=mvQ2KhvM4x4