#avr | Logs for 2014-06-16

Back
[01:25:25] <rue_more> I was just pondering a enc28j60 on a mega32 today
[05:15:16] <twnqx> guys, what's the IO voltage for an arduino uno?
[05:16:23] <twnqx> wtf :S
[05:16:59] <twnqx> no a single day without new pc errors
[05:48:13] <DanFrederiksen> twnqx, pc errors?
[05:49:40] <DanFrederiksen> if your computer is unusually unstable it could be a ram fault. use a util to check. I once had my ram go faulty. made it crash whenever it was used
[06:29:54] <twnqx> nah
[06:30:07] <twnqx> stuff like "linux fails to power off since a bios upgrade"
[06:30:18] <twnqx> "synergy suddenly refuses to switch PCs"
[06:31:08] <twnqx> interaction between synergy, enlightenment and some applications is... strange
[06:31:48] <twnqx> especially invisible modal windows (hello there, steam)
[06:34:25] <Lambda_Aurigae> twnqx, on your ardweeny uno...what is the microcontroller on it and what voltage is it running at? from that, look at the datasheet for the microcontroller.
[06:35:15] <twnqx> i don't care any more. i looked at the datasheets of the chips on the other end and those are 3.3V
[06:35:18] <twnqx> which suits me well
[06:35:23] <Lambda_Aurigae> rue_more, rue_bed, http://tuxgraphics.org/electronics/201204/embedded-ethernet-client.shtml
[06:35:28] <twnqx> as i wanted t6o replace the arduino with a stellaris :P
[06:36:05] * twnqx finally wants to venture into ARM-land
[07:39:00] <megal0maniac> twnqx: I'm doing it with a SAM D20, so I can stick to the same environment, tools etc :)
[07:39:58] <twnqx> same environment?
[07:40:05] <twnqx> didn't know avrdude works with sams
[07:40:32] <megal0maniac> twnqx: Atmel Studio
[07:40:33] <twnqx> remember, i despise windows, and i select the µC i use primarily by the availabity of programmer, then debugger on linux
[07:41:03] <megal0maniac> To be fair, I did say "so *I* can stick to the same environment" :P
[07:41:23] <twnqx> and by my rules, atmel's ARMs are out
[07:41:38] <megal0maniac> How so?
[07:41:47] <twnqx> no programmer for linux i could find
[07:41:56] <megal0maniac> jtagice3...
[07:42:06] <twnqx> with which tool, precisely?
[07:42:20] <twnqx> software, i mean
[07:42:26] <megal0maniac> avrdude / avarice
[07:42:31] <twnqx> for arm?
[07:42:39] <megal0maniac> Oh duh.
[07:43:25] <megal0maniac> I'm not sure, I'm under the impression that Atmel provides something. Their toolchain for Linux does have ARM support iirc
[07:43:35] <megal0maniac> Or perhaps that's AVR32
[07:43:54] <twnqx> compilers are a non-issue
[07:44:11] <twnqx> i use my own compiled crossdev toolchains (gcc/binutils/gdb) anyway
[07:44:22] * megal0maniac wonders if atprogram supports arm
[07:48:47] <megal0maniac> twnqx: Yeah okay, I'm not finding anything. Looks like Armel ARM is out for Linux :/
[07:48:55] <megal0maniac> Pity, that
[08:10:06] <twnqx> see, i have a universal environment for EVERYTHING development :P
[08:10:14] <twnqx> emacs, gnu make, gnu toolchain :P
[08:10:25] <twnqx> oh, and git
[08:13:40] <Daulity_> avr rules
[08:13:43] <Daulity_> assembly rules
[08:13:47] <Daulity_> muhahahaha
[08:52:51] <xvzf_> Hello!
[08:54:40] <xvzf_> Anybody in here? I need some help..
[08:54:54] <twnqx> generally, just ask & wait.
[08:58:08] <xvzf_> Okay,
[08:59:20] <twnqx> i meant ask your question, not ask if someone's there
[09:00:03] <xvzf_> So my problem is, I can't scan both sensors, adxl345 and itg3200 : Here's the complete source: https://github.com/xvzf/Infinity, I think the error is in https://github.com/xvzf/Infinity/blob/testing/src_avr/sensors.cpp in the function __sensors::update_all()
[09:00:21] <xvzf_> Starting at line 77
[09:00:44] <xvzf_> If I try to update only the ACC or the Gyro, everything works just fine..
[12:13:30] <madist> if you short circuit an AVR output to ground (or positive), will it burn out that output ? Or will the AVR be fine once the short circuit is removed ?
[12:15:54] <malinus> madist, it will *probably* be "fine" but don't do it.
[12:18:02] <beaky> hello
[12:18:08] <madist> hello beaky
[12:26:11] <beaky> whats a good project for my ATmega1284p
[12:36:01] <malinus> beaky, one you want to make
[12:37:00] <beaky> i want to make sdr
[12:40:18] <N1njAway> Hi Beaky! Long time no see.
[13:07:18] <malinus> beaky, go make sdr :)!
[14:36:03] <bitd> So it turns out, you have to enable timers to work <.<
[14:36:22] <bitd> Ahum >.>
[14:40:48] <malinus> :D
[15:00:02] <megal0maniac> beaky!
[15:01:18] <umquant> having some strange SPI problems. I am integrating with a sensor model and am able to write to its registers fine, but am having trouble reading from them
[15:01:20] <umquant> http://pastebin.com/HHJVQA1X
[15:01:30] <Encrypt> Hi everybody o/
[15:01:34] <Encrypt> i'M BACK HERE :)
[15:01:39] <Encrypt> Caps lock fail, sorry
[15:01:57] <Encrypt> I have a hardware question this time...
[15:02:20] <Encrypt> I don't understand the aim of integrated pull-up resistors in the ATtiny AVRs...
[15:02:24] <umquant> I can write to lets say register 0x000F perfectly fine. When I do printf("reading reg %d",sensor_read(0x000F); I always get back 255
[15:02:40] <umquant> infact I get back 255 with every register. I think it may have to do with the 8vs16 bit casting
[15:02:50] <Encrypt> It would have sounded more logic if it were pull-down resistors...
[15:02:56] <Encrypt> (To my mind)
[15:24:14] <geohhot> yaay a buttload of people
[15:24:57] <geohhot> anybody willing to talk ?
[15:29:25] <umquant> what can we help you with geoforce
[15:29:29] <umquant> geohot*
[15:30:07] <megal0maniac> umquant: He's long gone..
[15:30:17] <umquant> lol whoops
[15:30:27] <megal0maniac> Hence tab completion not working ;)
[15:32:04] <umquant> Man my keyboard was trying to tell me
[15:33:04] <umquant> megal0maniac: Have you ever had the issue I described with SPI? always returning 255
[16:25:58] <bitd> Ahhh averaging inputs.
[16:26:07] <bitd> Lovely smooth values.
[16:33:45] <Jartza> hmmh
[16:33:57] <Jartza> tried using opamp (lm358) with my "modem"
[16:34:19] <Jartza> seems to work, except the output is between -400mV and +2.92V
[16:34:38] <Jartza> still within specs, but I more or less tried to get from 0 to 3.3V :)
[16:41:16] <megal0maniac> Jartza: Look at the datasheet. You can only get so close to the rail voltages with an opamp
[17:17:16] <Jartza> megal0maniac: true. and it fits the specs.
[17:17:35] <Jartza> (-500mV is ok)
[17:57:37] <umquant> fml the SPI problem I was having was just the circuit
[17:57:58] <umquant> -sigh-. Should have been kind of obvious that I could write data and not read it. MISO was hooked up wrong
[18:19:30] <hetii> HI :)
[18:20:58] <Jartza> hi
[18:22:24] <hetii> I play with RGB leds, and consider with way will be the best for eye when I want to set some specific color and then set how strong it will be.
[18:23:36] <umquant> hetii: You could use three POTs and adjust via the ADC
[18:25:52] <hetii> this is not the point to use ADC and control each color separately. Let say by mixing values of R,G,B i got yellow color, so ok we have some yellow light, but what in the case when I want to have it very strong or low
[18:26:25] <umquant> by very strong or low do you mean the brightness?
[18:26:35] <umquant> that can be adjusted via feeding the LEDs a duty cycle
[18:27:33] <hetii> yes i talk about brightness.
[18:27:57] <umquant> hetii: http://www.waitingforfriday.com/index.php/Controlling_LED_brightness_using_PWM
[18:29:46] <hetii> ok I control already all colors by setting for each of the duty cycles, thats how i get yellow color
[18:30:03] <hetii> but the brightness is another topic
[18:31:00] <umquant> ok
[18:34:07] <hetii> umquant: This is how i do it now https://ideone.com/hSLCla
[18:35:04] <hetii> as you can values cover all possible range but the visual aspect is not nice:(
[18:40:48] <Jartza> oh well
[18:45:14] <hetii> ?
[18:45:35] <Jartza> with opamp I get my modem to 16kbps
[18:45:59] <Lambda_Aurigae> Jartza, that opamp acting as an amplifier?
[18:46:09] <Jartza> yes
[18:46:43] <malinus> Jartza, how's your scope doing :D?
[18:46:49] <Jartza> great!
[18:46:51] <Jartza> loving it
[18:47:02] <Jartza> learning to use it better every day
[18:47:12] <Jartza> and it has been tremendous help with my modem
[18:47:38] <Lambda_Aurigae> I really need to make myself an analog scope.
[19:56:42] <rue_more> make an avr based scope
[22:39:47] <oakwhiz> I have an AT90USB162 board... I'd like to turn it into an HID device. Is LUFA the easiest way to do this?
[22:48:18] <Casper> possibly, never touched it, but I hear good thing about it, and it already have tons of HID example afaik