#avr | Logs for 2014-03-12

Back
[03:14:43] <sirpatrick> Is this a good way to represent pins so that I can parse commands that do stuff with them (set or query digital state,etc) http://pastebin.com/jbKUqYnK
[03:15:43] <sirpatrick> I plan on making a simple uart command parser
[04:03:56] <blathijs> sirpatrick: It might be too complicated for your needs, but did you see bitlash?
[14:09:49] <f00bar80> Trying to compile a servo sketch http://pastebin.com/M4LvwPmw, using arduino-mk with the make file as http://pastebin.com/hmh3dpYB , getting the following errors http://pastebin.com/f6C3taSB , any idea what's wrong ?? what am i missing here ?
[14:23:43] <megal0maniac_afk> f00bar80: Put your include in "" not <>
[14:24:03] <megal0maniac_afk> It's an absolute path, not a standard library
[14:24:38] <megal0maniac_afk> RikusW: That asm is frightening
[14:24:55] <RikusW> heh :)
[14:26:10] <RikusW> its not that hard... go read the instructionset reference
[14:26:28] <RikusW> its easier to read than write...
[14:27:08] <f00bar80> megal0maniac_afk, i did and got the error http://pastebin.com/nS8TTfWY ..
[14:28:32] <megal0maniac_afk> RikusW: I think I have a printout of the instruction set
[14:28:42] <megal0maniac_afk> Just need the time. Busy with maths :(
[14:28:56] <RikusW> second year calculus ?
[14:29:45] <megal0maniac_afk> Yip. Laplace transforms, Z transforms
[14:34:04] <megal0maniac_afk> f00bar80: I don't know. It's not Arduino and it's not nice AVR C, so it's messy
[14:40:06] <f00bar80> megal0maniac_afk, what do you mean by it's not Arduino ?
[14:42:54] <docmur> I have to reprogram my attiny25 in HV mode to change some fuse settings. Does anyone know the pinout needed between the HV header and the attiny? I have a cable which looks right according to Atmels site but in Avr Studio 6.1 I can't read the device signatures of any of the controllers.
[14:54:42] <Tom_itx> it would be in the studio device help file
[15:03:15] <docmur> I can't seem to find it, the online documentation is horrible at least from atmel
[15:26:55] <RikusW> docmur: using which programmer ?
[15:32:26] <docmur> attiny25, I found an alternative wire guide
[16:05:36] <docmur> I built a properly pinned out HV Prog -> ISP cable and I still can't get a device signature in Avr Studio 6.0, all I see is 0xFFFFFFFF
[16:06:11] <myself> is the power plugged in? have you tried turning it off and on again?
[16:14:13] <megal0maniac_afk> docmur: Do you realise that you still havent told anyone which programmer you're using?
[16:14:34] <docmur> Oh the AVR Dragon
[16:15:41] <docmur> I'm connecting the Dragon to a Attiny 25 board, that has an 8 pin header on it, the first 6 mins of the 8 pin header map to the MKII standard
[16:16:03] <docmur> So I'm assuming the other 2 are for use with the High Voltage programmer from the Dragon
[16:17:47] <myself> How are you powering the target?
[16:18:53] <docmur> On the dragon board I have a jumper from pin 6 of the VCC header to pin 2 of the ISP header, the Attiny board I have connectd to a power supply, supplying 5 volts with 3A available
[16:22:32] <docmur> Oh and I followed this pin out to create my header: http://127.0.0.1:47873/help/1-4336/ms.help?method=page&id=AVR_DRAGONUSERGUIDEAVRDRAGON.SCKT3400D1&product=ATMELStudio&productVersion=6.1&topicVersion=&locale=EN-US&topicLocale=EN-US
[16:23:07] <docmur> oh sorry wrong link
[16:23:28] <docmur> http://www.atmel.no/webdoc/avrdragon/avrdragon.SCKT3400D1.html
[16:23:36] <RikusW> docmur: use the dragon to supply the tiny and DO NOT connect anything else while doing HVSP
[16:24:14] <docmur> Okay, so should I supply the tiny from the ISP header or could I also connect VCC and GND from the VCC header to the tiny?
[16:24:51] <RikusW> use the vcc header
[16:25:07] <RikusW> and did you solder in the 2x10 connector for HVPP/HVSP ?
[16:26:29] <docmur> have the tiny power off the VCC header, and I have a 2x10 connector in place for the HVPP header, I used a 2x10 socket and a 2x4 socket to make the cable
[16:26:41] <docmur> I still get 0xFFFFFFFF for the Device Signagture
[16:26:59] <myself> do you have another tiny to try? heh.
[16:27:05] <myself> just in case it's cooked
[16:27:17] <docmur> yes, I've tried three of these same boards, they all use tiny 25
[16:27:23] <docmur> all three give the same result
[16:27:42] <RikusW> did you select HVPS in studio ?
[16:27:44] <RikusW> *HVSP
[16:28:15] <myself> ooh ,boards?? is there something else on the board trying to run from the power you supply?
[16:28:22] <docmur> Yep, "Tool: AVR Dragon Device: Attiny25 Interface: HVSP Target Voltage (Detected) 5.0V "
[16:28:50] <docmur> litearlly on these boards there is 3 led's a diode and a button
[16:29:03] <RikusW> what do you have connected on the reset line ?
[16:29:12] <RikusW> it will need to go to 12V
[16:33:19] <docmur> I just measured the reset pin and it's holding at 5V
[16:55:48] <myself> the thing's in a board, though?
[17:38:03] <f00bar80> Trying to compile a servo sketch http://pastebin.com/M4LvwPmw, using arduino-mk with the make file as http://pastebin.com/hmh3dpYB , getting the following errors http://pastebin.com/f6C3taSB , any idea what's wrong ?? what am i missing here ?
[17:53:36] <f00bar80> any comment?
[20:14:06] <ColdKeyboard> damn you i2c!
[20:20:51] <Casper> ColdKeyboard: could be worse I guess
[20:21:20] <Casper> like a proprietary 1 wire interface, full duplex, encrypted
[20:21:35] <Casper> and I can see how it could work :D
[20:21:54] <Casper> I don't want to have to bitbang that....
[20:29:26] <ColdKeyboard> Well I agree but I'm working with damn microchip 16F and in their IDE they have peripherials libs but they don't support 16F :S
[20:29:42] <ColdKeyboard> Very strange company when it comes to support, IDE and librariers...
[20:29:57] <ColdKeyboard> I'm trying to use I2C for DS1307 but no luck so far :\
[20:30:22] <ColdKeyboard> I keep getting same "read" from slave even when I disconnect SCL and SDA lines
[22:04:01] <rue_more> ColdKeyboard, I evicted PICs from my shop when they made the 16F877A that wasn't compatible with the 16F877, had to "buy new programmer" F* that!
[22:04:21] <ColdKeyboard> That sucks...
[22:04:27] <rue_more> from then on I'v been avr all the way, and happy
[22:04:37] <ColdKeyboard> :D
[22:39:42] <Casper> rue_more: now, come clean the driveway, it snowed alot tonight...
[22:42:44] <rue_more> pff, go make a robot to do it
[22:43:18] <DanFrederiksen> snowbots would be useful
[22:43:23] <N2TOH> just apply fire and melt the snow, with enough heat you can also flash off the water
[22:43:51] <DanFrederiksen> that's rather energy intensive. try a little less american solution
[22:43:55] <rue_more> if you happen to be a mad scientist, use the death-ray on low
[22:44:19] <rue_more> (the cosmic death ray, not the hand job)
[22:44:41] <N2TOH> nah, just build a polywell fusion reactor and use the cooling water to heat the walk/drive ways
[22:45:10] <rue_more> but make sure there are no leaks, maaaan they raise a stink about that
[22:46:10] <rue_more> someone write me sample code to repalce the 2 with a 4 in (int) 128
[22:46:25] <rue_more> no wait, make it a 5
[22:46:44] <N2TOH> 4 is easy, use ROT
[22:46:59] <rue_more> rot, to turn 128 into 148?
[22:47:08] <N2TOH> rotate
[22:47:26] <rue_more> no rotate is gonna do that
[22:47:35] <N2TOH> oh add 20?
[22:47:45] <rue_more> what if its to become 158?
[22:47:47] <DanFrederiksen> just..
[22:47:55] <rue_more> i need digit replacement
[22:48:08] <rue_more> I'm ill and cant think
[22:48:29] <rue_more> I was trying to use moduls to divide earlier today
[22:51:29] <rue_more> how do I do decimal place anding
[22:51:48] <rue_more> make it 108 and add it as 50
[22:55:32] <Casper> would be nice to have a snowblower on non-slipping tracks, that I could make a robot for it :D
[22:55:52] <Casper> sadly, we don't get enought snow to justify the cost
[22:57:38] <N2TOH> use a commercial landscaping leaf blower, and "move" the snow elsewhere
[22:58:10] <Casper> not enought power
[22:58:34] <N2TOH> 16 horse not enough?
[22:59:07] <rue_more> use the weedeater, after enough time the snow will be gone
[22:59:53] <N2TOH> rent a paving roller for mecadium and just pack it down
[23:00:40] <N2TOH> rather then tar and chip the road, just throw gravel and grind it into the snow
[23:01:13] <Casper> N2TOH: 8hp snowblower just do it... 16 of air power won't move hardened snow
[23:01:35] <N2TOH> oh yeah right wet snow
[23:02:09] <Casper> right now it's fluffy snow... that the wind carry
[23:02:17] <N2TOH> Casper, may I suggest a medium cost upgrade?
[23:02:20] <Casper> so can't even clean now... it will be all back by toomorrow...
[23:03:31] <N2TOH> http://www.youtube.com/watch?v=g-hRflBBPdM
[23:03:31] <Casper> N2TOH: hire someone? :D
[23:04:00] <Casper> diesel may not be a good idea here
[23:04:02] <Casper> not at -40
[23:05:07] <N2TOH> need I post the link of another snow blower with a cummings intake heater grafted on?
[23:05:28] <Casper> but still, won't offer a solution for in 8 hours
[23:07:16] <N2TOH> http://www.youtube.com/watch?v=SBnOEnlM2JA
[23:18:28] <rue_more> rent a 747, point one of the engines down your driveway and dial 'er up
[23:19:59] <N2TOH> rail companies do it all the time
[23:20:22] <N2TOH> well the jet engine, not so much the 747
[23:21:01] <rue_more> why would you put an electric heater on the intake and not have any kind of exhaust heat recovery system to pick up once its going?\
[23:23:24] <Casper> my guess is: for start
[23:24:29] <Casper> rue_more: have you toyed with tl494?
[23:27:05] <rue_more> made a few smps too
[23:27:11] <rue_more> beware the amx duty, it sucks
[23:27:36] <Casper> I want to hack one
[23:27:53] <rue_more> ... hu?
[23:27:55] <Casper> need to basically add output current limiting
[23:27:55] <rue_more> to do?
[23:28:07] <Casper> an atx psu into sla/car charger
[23:28:09] <rue_more> they have an ampp for that
[23:28:31] <rue_more> I did that
[23:28:37] <rue_more> then I connected it backwards
[23:28:45] <rue_more> and now its on the fix pile
[23:28:47] <Casper> was wondering if I could just disconnect the input current limiter and put it on the output
[23:28:54] <Casper> how did you did it?
[23:29:24] <rue_more> I got rid of everything but the 12V rail, and adjusted the feedback gain to get about 14V
[23:29:27] <N2TOH> wait?! you can make an adapter to use an ATX supply to charge a car battery?
[23:29:36] <rue_more> the fan dosn't like it
[23:29:41] <Casper> what about current limiting?
[23:29:47] <rue_more> what about it?
[23:29:57] <rue_more> :)
[23:30:05] <Casper> so you didn't?
[23:30:14] <Casper> and hopped the batt won't pull too much current?
[23:30:30] <rue_more> I dont remember much
[23:30:42] <rue_more> I remember thinking "whatever I do, I cant hook it up backwards"
[23:30:53] <rue_more> I remember really carefully adjusting the voltage
[23:31:10] <N2TOH> a simple diode could have prevented that
[23:31:33] <rue_more> well your too late, I already fried it
[23:31:53] <Casper> you probably only fried the caps
[23:31:54] <rue_more> not I ahve to replace the chips
[23:31:57] <Casper> and the fan
[23:36:13] <N2TOH> but back to my question, so what do you need to properly charge a car battery from an ATX supply? maybe just a series shunt regulator?
[23:36:41] <Casper> N2TOH: 14.4V with a current limit that won't fry your psu
[23:37:01] <Casper> so basically only need to raise the voltage, and add current limiting
[23:37:14] <N2TOH> IE some sort of reverse polarity protection
[23:38:27] <N2TOH> with a bit of sergury you might be able to wire the 12 volt and the 5V or 3v3 windings in series
[23:38:28] <Casper> that's optional
[23:38:49] <Casper> just kill the 3.3V and 5V
[23:39:00] <Casper> and redo the feedback
[23:39:11] <rue_more> sounds easy eh?
[23:39:22] <N2TOH> then again it might just be easier to tweek the 12V and use a dropping resistor for the fan
[23:52:03] <rue_more> iiirc, the feedback system sucked
[23:55:01] <rue_more> 1234
[23:55:13] <rue_more> to erase the 2
[23:55:24] <rue_more> divide by 1000
[23:55:27] <rue_more> to get the 1
[23:55:45] <rue_more> and modulus by 100 to get the 34
[23:56:03] <rue_more> remultiply the 1
[23:56:05] <rue_more> 1034
[23:56:30] <rue_more> then, multiply your new digit by 100, and add
[23:56:34] <rue_more> 1534
[23:56:47] <rue_more> or
[23:56:49] <Casper> wth are you talking about?
[23:57:06] <rue_more> I'm trying to do decimal level digit substitution
[23:57:35] <rue_more> part of the number input code of my usb controlled bench power supply
[23:58:46] <rue_more> if you divide the number by 100
[23:58:49] <rue_more> gets 15
[23:59:02] <rue_more> then modulus 10, to get the 5
[23:59:14] <rue_more> now subtract 500 from the origional
[23:59:22] <rue_more> and add in the new number * 100
[23:59:46] <rue_more> this dosn't lend itself to a one-liner