#avr | Logs for 2016-12-09

Back
[00:57:02] <Jartza> Lambda_Aurigae: how do you mean beat me to it? :)
[00:57:47] <Jartza> Assembly complete with no errors.
[00:57:47] <Jartza> Segment usage: Code : 156 words (312 bytes) Data : 32 bytes EEPROM : 0 bytes
[00:58:15] <Jartza> => https://www.youtube.com/watch?v=qucJMObCUpI
[00:58:51] <Jartza> and that's on attiny5
[00:58:57] <Jartza> 6 pins in that MCU
[00:59:06] <Jartza> 8-color VGA output from 3 pins
[00:59:23] <Jartza> those guys have like gazillion pins :)
[01:19:53] <Jartza> and that's the bloated version, where the horizontal offset is done with lot of nops
[01:19:57] <Jartza> and ijmp
[01:20:44] <Jartza> actually, 32 nops
[01:37:20] <twnqx> Jartza: wow, impressive
[01:44:17] <Jartza> thanks :)
[01:45:54] <Casper> now, draw a scene!
[01:46:02] <Jartza> maybe I should modify that to draw something else
[01:46:10] <Jartza> the "base" is around 200 bytes
[01:46:33] <Jartza> base, meaning, it has hsync, vcyns and it draws pixels
[01:46:53] <Jartza> so there's about 150 opcodes to use for calculating the pixels
[01:49:04] <Jartza> the sinewave pattern was just drawn there as a test to make it more interesting :D
[02:08:04] <_ami_> Jartza: (clap)
[03:42:35] <skz81> Jartza, << Maybe I should make it do something more fancy then, there’s still 200 bytes of flash free on that huge chip ;) >> : \o/
[03:42:39] <skz81> yes !
[03:47:36] <Jartza> :D
[03:48:05] <Jartza> now I just need to figure out what the more fancy is, then.
[05:06:11] <Emil> Recommended bootloader for the atmega328p?
[05:06:26] <Emil> I'm tired of having a multitude of bootloaders on the devices and would just rather flash one on them all
[05:06:35] <Emil> (Uno uses 115200, pro mini 57600)
[05:57:49] <Emil> How the heck can 115200 and 250000 fail when 1Mbaud works just fine
[06:00:50] <_ami_> Emil: in my recent memory, 115200 works fine with mega2560.
[06:01:05] <Emil> I'm on m328p
[06:01:11] <_ami_> i use a upload.sh script to upload the hex via arduino mega 2560 bootloader.
[06:01:17] <Emil> 115200, 250000 should work just fine
[06:01:29] <Emil> But for some reason they don't :o
[06:02:26] <_ami_> works for me!
[06:14:53] <Emil> ;)
[06:32:24] <Lambda_Aurigae> Jartza, he posted before you did...
[06:33:04] <Lambda_Aurigae> Emil, the deviation depends on the main clock speed...I've seen 9600 fail whre 115200 works fine.
[06:39:26] <Jartza> Lambda_Aurigae: ahh, that was there already when I first heard about the whole competition
[06:39:49] <Jartza> so in that sense yea
[06:40:10] <Jartza> there's also someone trying to make space invaders with attiny2313
[06:40:16] <Jartza> and why not, though
[06:45:27] <Emil> Lambda_Aurigae: on crystal, both
[06:46:15] <Lambda_Aurigae> just because it is on a crystal doesn't mean there isn't a deviation from the base frequency due to division errors from the crystal frequency.
[06:46:48] <Lambda_Aurigae> what crystal frequency?
[06:47:52] <Lambda_Aurigae> http://wormfood.net/avrbaudcalc.php?bitrate=300%2C600%2C1200%2C2400%2C4800%2C9600%2C14.4k%2C19.2k%2C28.8k%2C38.4k%2C57.6k%2C76.8k%2C115.2k%2C230.4k%2C250k%2C.5m%2C1m&clock=16&databits=8
[06:47:55] <Lambda_Aurigae> betting on 16mhz.
[06:48:12] <Lambda_Aurigae> at that, 115200 and 250000 will be iffy at best and fail most likely.
[06:48:40] <Lambda_Aurigae> well, 115200 and 230400
[06:49:50] <Lambda_Aurigae> it's all about dividing and error %
[07:29:40] <Jartza> divide and conquer
[07:37:13] <Emil> ...
[07:37:15] <Emil> Lambda_Aurigae: what?
[07:37:21] <Emil> 250k on 16MHz is error free
[07:37:50] <LeoNerd> If you wanna do 115.2kBaud, get yourself a 14.7456MHz xtal
[07:38:00] <LeoNerd> That's a perfect divisor
[07:38:05] <Emil> LeoNerd: No, I want to do 250k, 500k and 1M
[07:38:09] <LeoNerd> Ah
[07:39:27] <Lambda_Aurigae> so you have something else wrong.
[07:48:58] <Emil> Probably some fluke :/
[07:54:29] <Tom_L> i'll take another fluke :D
[07:54:36] <Tom_L> good meters...
[07:55:14] <Emil> If only there werent dem god damn export controls
[07:55:21] <Emil> Fucking USA ruining things for the rest of the world
[07:55:31] <Emil> I used Flukes heat camera last summer, it was quite nice
[08:29:28] <Emil> Which uses more energy
[08:29:40] <Emil> Using internal 8MHz oscillator
[08:29:44] <Emil> or using crystal
[08:29:56] <Emil> 8MHz also
[08:30:32] <LeoNerd> Datasheet probably has something to say on the subject
[08:33:46] <Emil> Couldn't fine
[08:33:47] <Emil> find
[08:40:11] <Jartza> I once tried to measure but couldn't get measurable difference
[09:18:56] <kc2uez> Hi guys, I am having issues logging in to the atmel gallery within atmelstudio. I thought it was due to 6.2 being old, so I installed the 7.0, but the problem still there. I see that this is a .net application using the IE engine, so I thought about trying just logging in to myAtmel account using IE and the problem still present. The lower half where you type in the address is missing https://gallery.atmel.com/Profile/SignIn
[09:19:58] <kc2uez> To satisfy carabia i did google this first and the only issue like this was solved by re-installing windows, I am trying to avoid that
[09:20:29] <kc2uez> the page displays fine using firefox, and chrome
[09:21:33] <kc2uez> using win7/ie11 64bits, up to date and using the latest atmelstudio
[09:22:19] <kc2uez> anyone have problems logging in to the atmel gallery with internet explorer?
[09:31:13] <skz81> kc2uez, <<The lower half where you type in the address is missing>> ==> I can't figure it in my head, can you please make some screen copy plz ? Unsure I can help you though...
[09:34:33] <kc2uez> yes, my bad.. just a sec.
[09:40:49] <kc2uez> http://imgur.com/a/LGtZW
[09:45:22] <kc2uez> this is the browsers point of view: http://imgur.com/a/LI4T2
[09:46:05] <kc2uez> i have lower all the security on IE11 to nothing and still
[09:46:46] <kc2uez> i look at the source of the page and I see that sections of the page are using http, but the logging section is using https
[09:47:46] <kc2uez> I even tried to only load the https part of it, but it doesn't display
[09:48:01] <skz81> the lonely "remember me" check box in AS7.0... is just WTF ^^
[09:50:16] <skz81> what do you mean "uses HTTPS" ? I agree the action linked with the "sign in" button is an httpS url, but it should have nothing to do with rendering/displaying the form itself...
[09:56:15] <kc2uez> I went looking that way because chrome has a warning saying that cross site linking between http and https is dangerous
[09:56:31] <kc2uez> so i was thinking maybe the IE is blocking that
[09:57:03] <kc2uez> what happen when you go to: https://gallery.atmel.com/Profile/SignIn using IE
[10:00:47] <skz81> kc2uez, i'm under linux Dude, no IE here :p
[10:02:04] <kc2uez> ok, good call.
[10:04:25] <LOMAS> Hello there friend, would you suggest me some best options for power supply for ATmega 32 chip. I am using almost all the pins to drive other chip. What kind of power supply would be best in this case ? I am a firmware guy not much expert in analog and power supply designs.
[10:04:46] <LeoNerd> Are we talking battery? Fixed installation?
[10:04:51] <LeoNerd> Mains availble? USB?
[10:04:59] <LeoNerd> 5V? 3.3V? something else?
[10:05:00] <LeoNerd> So many questions
[10:05:05] <LOMAS> no no the input will be above 5v
[10:05:20] <LOMAS> external power supply SMPS or transformer based
[10:05:23] <skz81> kc2uez, hum was suspecting something about javascript first, but... deactivated javascript and it still works so ...
[10:07:01] <LOMAS> would it be reliable if used 7805 hooking capacitors at both sides ?
[10:07:24] <LeoNerd> Sure?
[10:07:33] <LeoNerd> I'd start to ask questions about total current consumption at that point
[10:07:44] <LeoNerd> and what the input voltage is.. what's the power drop on the regulator
[10:07:50] <LeoNerd> Do you need a heatsink?
[10:07:51] <LOMAS> the total current might be 500-700 ma
[10:08:00] <LeoNerd> That's quite a lot. I wouldn't put that through a 78xx
[10:08:19] <LeoNerd> Do you really need the suuuuperlow noise of a linear regulator, or would a switching reg. be better?
[10:08:37] <LOMAS> I would prefer linear one
[10:08:57] <LeoNerd> At 700mA that's going to get hot
[10:09:54] <LeoNerd> Plus I don't like paying the electricty bill for electric heating ;)
[10:10:07] <LOMAS> :D
[10:10:26] <LeoNerd> (gas is a lot cheaper per Joule of heating energy)
[10:10:45] <LOMAS> I am actually driving an LCD, a buzzer, couple of LEDs directly yo uC, 6 pins to ULN2003.
[10:11:05] <LeoNerd> What's after the 2003?
[10:11:11] <LeoNerd> I'm so far seeing nothing here that requires linear
[10:11:11] <LOMAS> on the other hand I am taking 3 analog i/p and 3x3 keypad I/P s
[10:11:54] <LOMAS> A after 2003
[10:12:04] <LeoNerd> ...
[10:12:07] <LOMAS> Oh I mean there are relays
[10:12:13] <LeoNerd> A 2003 is (IIRC) an H-bridge for motors or similar
[10:12:17] <LeoNerd> What are you controlling with it?
[10:12:30] <LeoNerd> Yah; so.. relays, LEDs, a buzzer..
[10:12:33] <LOMAS> I am controlling 3 motors
[10:12:39] <LeoNerd> None of these care about a little bit of noise from the power suplly
[10:12:44] <LeoNerd> You don't need the linear there
[10:13:02] <LOMAS> there will be total 6-10 relays after 2003
[10:13:15] <LOMAS> oh...
[10:13:31] <LeoNerd> Yah; those relays and motors will be creating *way* more noise on the power rails than a decent switching regulator would anyway
[10:13:38] <LeoNerd> So you really are buying nothing by using a 78xx
[10:13:42] <LOMAS> so you mean SMPS will be okay to use ?
[10:13:44] <skz81> <LeoNerd> (gas is a lot cheaper per Joule of heating energy) >> and there is no loss on the path to your home, every Joule convoyed actually heats your room (not the wire that connects you to your provider)
[10:13:51] <LeoNerd> Switching regulators are much more energy-efficient
[10:14:25] <LOMAS> okay
[10:14:28] <LeoNerd> The only thing I've built in the last year or so that I'd say needed a linear regulator, is the analog output parts of my signal generator upgrade
[10:14:40] <LOMAS> won't there be noise into the analog reading ?
[10:15:53] <LOMAS> What I am expecting is In the end there will be stability as well as less noise :D
[10:16:15] <LOMAS> but irony is I don't know a thing to make it happen
[10:16:16] <LOMAS> :D
[10:25:56] <deepbluv> hi ,I have this code here: https://paste.debian.net/901423/ ,and on copimiing I get this here: https://paste.debian.net/901424/ .so how to fix this?
[10:26:24] <deepbluv> hi ,I have this code here: https://paste.debian.net/901423/ ,and on compiling I get this here: https://paste.debian.net/901424/ .so how to fix this?
[10:29:59] <skz81> /usr/lib/avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>." [-Wcpp]
[10:30:31] <skz81> so try to include <util/delay.h> instead of avr/delay.h
[10:31:20] <deepbluv> skz81: ok,I'm not concerned about warnings but the error message
[10:31:33] <skz81> also, inlude it AFTER <avr/io.h> and so, it should fix the " error: ‘DDRB’ undeclared"
[10:31:59] <deepbluv> skz81: that's great thanx a lot
[10:33:04] <deepbluv> skz81: by the way ,should I not pass some optin to select a target chip device or is c that ortable?
[10:33:31] <deepbluv> skz81: by the way ,should I not pass some option to select a target chip device or is c that portable?
[10:34:25] <skz81> deepbluv, -mmcu is what you're looking for
[10:35:18] <skz81> by the way, I would have believe it not mandatory for compilation, only for link. But it would be strange, because avr/io.h needs to know what your target is
[10:35:30] <skz81> So for link it's mandatory, i'm sure of that :)
[10:39:01] <deepbluv> skz81: nice tip,thanx ,bro
[15:20:39] <Emil> Would anyone be willing to share a good makefile?
[15:21:15] <Emil> I already have a makefile for C that is quite nice (imho) but I would like to extend it to AVRs
[15:26:38] <rue_house> whats full speed for internal on a tiny26?
[15:29:25] <rue_house> 8Mhz
[15:30:51] <Emil> yah
[15:30:58] <Emil> Well
[15:31:17] <Emil> It probably can run at around 28MHz :D
[15:31:37] <Emil> CLKPR=0b10000000; CLKPR=0b00000000; OSCCAL=255;
[15:34:12] <Emil> Also, one must select CKSEL[3:0] as 0100 for 8MHz nominal
[15:35:01] <Emil> CKSEL3..0*
[21:42:51] <sebus> Oh boy... Fixing that damned thing was a real pain... https://www.youtube.com/watch?v=JZTa5f-XFIs But works :D
[21:43:36] * sebus played a bit with sx64
[21:44:56] <Thrashbarg> :D