#avr | Logs for 2014-05-18

Back
[02:12:51] <umquant> having some strange results working with tux ip lib. http://pastebin.com/QtRBS6y1
[09:36:40] <Vutral> hi
[09:36:40] <Vutral> how are you people
[09:36:40] <Vutral> hey crib
[09:36:41] <Vutral> you are there too
[09:37:43] <Vutral> do you still eat those awful soups
[10:11:26] <Lambda_Aurigae> http://hackaday.com/2014/05/18/hacking-an-old-parallel-port-webcam-to-work-with-a-gameduino-2/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+hackaday%2FLgoM+%28Hack+a+Day%29
[10:28:43] <Lambda_Aurigae> someone beat me to using a parallel port webcam with a microcontroller.
[10:35:23] <Kev> there are some i2c cameras out there, why bother with lpt ?
[10:44:27] <Yotson> ehm, maybe because 'out there' isn't 'in my drawer'? lol
[11:26:05] <myself> Lambda_Aurigae: hah, nice! It's like the ISA NIC on the uC but fewer pins. :)
[11:27:13] <myself> Lambda_Aurigae: If you still want a hackaday scoop, drive an HD44780 or something from a PATA port in PIO mode. It can be done, but I've never seen it written up.
[11:27:42] <myself> All those old PC mobos, even the ones too new to have ISA, still have PATA and that's a gorgeous TTL-level data bus.
[11:33:31] <ub|k> hi
[11:33:50] <ub|k> is anyone here using an arduino as avr programmer?
[11:35:25] <megal0maniac> myself: rue_more made a PATA AVR programmer
[11:36:15] <myself> oh dude
[11:36:16] <myself> nice
[11:36:34] <Lambda_Aurigae> myself, rue_more did a PATA AVR programmer...
[11:36:45] <Lambda_Aurigae> err.
[11:36:50] <Lambda_Aurigae> yeah, what megal0maniac said..hehe
[11:37:11] <myself> well, point is, it's an underappreciated bus and more example projects would save more old mobos from the scrapper. :)
[11:37:19] <Lambda_Aurigae> ub|k, you should ask in the arduino channel methinks.
[11:37:42] <Lambda_Aurigae> myself, I did play with floppy port many years ago.
[11:37:48] <ub|k> ub|k: no luck there
[11:38:09] <ub|k> sorry, i meant Lambda_Aurigae
[11:39:15] <Lambda_Aurigae> I downloaded the ardweeny software once...once...
[11:41:26] <Lambda_Aurigae> to answer your question, I have seen people in here talking about using an arduino as an avr programmer and have seen many web sites on the subject, but, myself, not never nope
[11:41:58] <megal0maniac> ub|k: Try asking your actual question. You're more likely to get answers that way
[11:42:09] <megal0maniac> Unless you're collecting statistics?
[11:43:09] <ub|k> megal0maniac: no, not really
[11:43:24] <ub|k> the thing is, i have burnt my arduino with the ArduinoISP sketch
[11:43:33] <ub|k> I've wired it so that I can program an atmega32
[11:44:11] <ub|k> and as soon as i try to upload the bootloader i get an error saying that the device signature is 0x000000
[11:44:26] <ub|k> can it be related to the fact that I have no external clock connected to the target AVR?
[11:44:41] <Lambda_Aurigae> do you have power to the AVR?
[11:44:41] <ub|k> it should be using the internal 1MHz one, no?
[11:44:46] <ub|k> Lambda_Aurigae: yeah
[11:44:59] <Lambda_Aurigae> if it is a fresh AVR from the factory then it should run on the internal RC oscillator.
[11:45:06] <ub|k> Lambda_Aurigae: it is
[11:45:11] <Lambda_Aurigae> do you have MOSI, MISO, SCK, RESET, and GND all connected?
[11:45:26] <ub|k> Lambda_Aurigae: I believe so, let me re-check
[11:46:40] <ub|k> yep
[11:47:04] <Lambda_Aurigae> MOSI and MISO are connected to the correct pins?
[11:47:17] <Lambda_Aurigae> if they are backwards it won't work.
[11:47:48] <ub|k> full output: https://gist.github.com/anonymous/adfe2bc3be6dfc264dad
[11:49:27] <Lambda_Aurigae> speed too fast?
[11:49:56] <Lambda_Aurigae> I wouldn't recommend trying to write fuses until you know the thing is talking properly.
[11:50:01] <Lambda_Aurigae> could brick the chip.
[11:51:15] <ub|k> MOSI and MISO seem OK
[11:51:20] <ub|k> hm.. that's the IDE setting it
[11:51:27] <ub|k> let me try command line with no fuses
[11:52:06] <myself> Do you have the recommended capacitor on the reset line of the parent arduino? That's not optional.
[11:52:20] <ub|k> Lambda_Aurigae: should I reduce the baud rate?
[11:52:51] <Lambda_Aurigae> dunno...I doubt it would make a difference actually.
[11:52:52] <ub|k> i was following this: http://www.instructables.com/id/Arduino-on-all-sorts-of-Atmels/?ALLSTEPS
[11:53:07] <ub|k> there's no mention of any capacitors, myself
[11:53:08] <Lambda_Aurigae> as that is the rate for avrdude to talk to the programmer I think.
[11:53:14] <ub|k> except for the xtal ones
[11:53:21] <ub|k> Lambda_Aurigae: how do i change the programming speed?
[11:53:40] <Lambda_Aurigae> with your arduino programmer,,,,I have no clue.
[12:11:22] <Lambda_Aurigae> I would suggest trying a known good programmer but I'm guessing you don't have one.
[12:13:31] <Lambda_Aurigae> ub|k, did it work once then never again?
[12:23:08] * megal0maniac hugs his jtagice3
[12:39:09] * Lambda_Aurigae pets the parallel port on his quad core amd machine.
[12:39:20] <megal0maniac> :P
[12:39:40] <megal0maniac> 1GBPS bit-banged programmer!
[12:39:45] <megal0maniac> Sets AVRs alight!
[12:40:03] <Lambda_Aurigae> first avr programmer I ever made was for the parallel port and it still works and is my favorite.
[12:40:24] <Lambda_Aurigae> been using it since 2003 or thereabouts.
[12:41:10] <megal0maniac> A really nice and cheap option, although a bit of a pain to connect, is an arduino micro clone on ebay. They're about $5 and with LUFA, they make very nice avrispmkii clones
[12:41:31] <megal0maniac> It's just the pinout that's a pain. You can't use a standard ISP cable. But other than that...
[12:50:36] <umquant> Making a module that has multiple digital and analog io in addition to some thermocouples. It will communicate over ethernet. You think atmegas would be sufficient, or something bigger?
[12:50:58] <umquant> I was thinking of using multiple atmegas. One for doing all the sensor stuff, and the other for doing the communications
[12:57:11] <megal0maniac> mega should be fine
[12:58:21] <umquant> is it pretty common to use multiple mcus in an instance like this?
[12:59:00] <megal0maniac> No
[12:59:09] <megal0maniac> Why would you need multiple?
[13:00:09] <megal0maniac> If you need more io then you get a bigger mcu or use some kind of bus expander. More flash, bigger mcu.
[13:00:13] <umquant> gotcha
[13:00:32] <umquant> that makes sense. If it doesn't have the power don't get another one.. just get a bigger mcu
[13:17:46] <ub|k> Lambda_Aurigae: it never worked
[13:17:51] <ub|k> now, the weird stuff is
[13:17:56] <ub|k> this worked before: http://www.gammon.com.au/forum/?id=11633
[13:18:17] <ub|k> after this round of experiments trying to program the bootloader, i don't get any chip info anymore
[13:18:34] <ub|k> just "ATmega chip detector"
[13:21:09] <ub|k> hm... connecting D9 to XTAL1 seems to fix it
[13:21:49] <ub|k> i think this is a clock issue
[13:21:58] <ub|k> where will i find a xtal now?
[13:26:23] <ub|k> i could use this to program the chip: http://www.gammon.com.au/forum/?id=11638
[13:26:30] <ub|k> i'd need the SD card reader though
[14:49:33] <ub|k> i managed to flash it
[14:49:48] <ub|k> it happened that the fuses somehow got set in a way that the internal clock was disabled
[14:50:18] <ub|k> i modified the source of the program i've mentioned above so that it sets the fuses back to normal
[14:50:38] <ub|k> then managed to burn the atmega32 with avrdude
[15:48:02] <megal0maniac> lol @ MeadServingWench
[16:27:43] <Lambda_Aurigae> ub|k, I suspect it worked once that you didn't notice..only way the fuses could get changed that I can see.
[16:28:23] <Lambda_Aurigae> or, the chip had been previously programmed and fuses changed.
[20:11:13] <ferdna> guys i need help with a DS2430A...
[20:11:23] <ferdna> http://www.maximintegrated.com/datasheet/index.mvp/id/2913/t/al
[20:11:43] <ferdna> i need to know what address to read... is it 0xAA?
[20:12:01] <ferdna> i need to know what address to read so i can read the eeprom data...
[20:16:28] <Lambda_Aurigae> well, what address did you set?
[20:16:37] <Lambda_Aurigae> oh, it's 1wire
[20:17:31] <Lambda_Aurigae> as I recall you just query the bus and see what responds then you have the address.
[20:18:14] <Lambda_Aurigae> eeprom memory starts of 0xF0
[20:21:21] <ferdna> let me try
[20:21:32] <Lambda_Aurigae> beyond that I know nothing about 1wire.
[20:23:09] <ferdna> it gives me an error...
[20:23:17] <ferdna> initializing argument 1 of 'void OneWire::select(const uint8_t*)'
[20:23:47] <Lambda_Aurigae> looks like a compile time error to me.
[20:25:02] <ferdna> Lambda_Aurigae, hmmm no is just a data type conversion issue
[20:25:15] <ferdna> but i dont know why
[20:25:59] <ferdna> Lambda_Aurigae, so if i did it right... i can read the 32 bytes right?
[20:26:01] <Lambda_Aurigae> so you didn't get that error when compiling?
[20:26:07] <ferdna> yes
[20:26:19] <Lambda_Aurigae> then it is a compile time error.
[20:26:36] <ferdna> no, its a data type error
[20:27:13] <ferdna> Lambda_Aurigae, if i post my code will you be able to help me?
[20:28:40] <Lambda_Aurigae> not me, not tonight. I'm winding down and heading to bed soon...and I avoid C++ whenever possible, specially on microcontrollers, but that's just me.
[20:29:00] <Lambda_Aurigae> you might contact whoever wrote the lib you are using.
[20:30:03] <ferdna> i am using arduino and onewire lib
[20:30:13] <Lambda_Aurigae> then I definitely can't help you
[20:30:21] <Lambda_Aurigae> I don't do arduino...
[20:30:25] <ferdna> thanks
[20:30:50] <Lambda_Aurigae> you should ask the #arduino guys on help with arduino libs I would think.
[20:31:40] * Casper throws ferdna on a goat
[20:32:08] * Casper then duct tapes him very well and watch
[20:33:26] <ferdna> =/
[20:33:32] <ferdna> help me Casper
[20:33:56] * Casper dissapears
[20:34:06] * Casper watches from a corner of the ceiling
[20:34:45] <Casper> ferdna: so, what's up?
[21:34:12] <Casper> does anyone knows of a good bootloader that can work over like 20ft of wires, and be somehow remotelly triggered?
[21:35:52] <mdszy> The bootloader isn't your problem at that point.
[21:39:13] <Casper> mdszy: true
[21:39:28] <Casper> maybe I'll just make it plain isp...
[23:12:07] <scottstamp> Oooh! People! :D
[23:13:20] <scottstamp> I just decided to take the plunge and relearn C (I've been a software dev for a few years but mostly high-level) and I'm trying to rewrite an SPI example I was using on the Arduino platform without the Arduino libraries... but for some reason it's not working at all. http://pastie.org/9188346 don't suppose anyone can have a look and see if there's any stupid mistakes?
[23:14:19] <Roklobsta> OK, you have admitted PEBKAC so that's a good start.
[23:15:13] <scottstamp> Lol isn't it PEBCAK? I'm well aware *I* fucked up, this is a computer, it only breaks when I break it. :)
[23:31:11] <rue_more> myself, I have all the info for the pata programmer if your interested