#avr | Logs for 2016-05-17

Back
[00:06:50] <goddard> DKordic: USART
[00:24:16] <inflex> woaaah, just received my packet of pogo pins (0.68mm) ... fun. Now to make a PCB to program my Tiny10 with
[01:33:25] <Jartza> goddard: synchronous or asynchronous? ;)
[01:56:31] <carabia> Oh hey MarkX
[01:56:51] <carabia> How's your lawsuit doing? Have you gotten $$$ off the old gov't?
[01:59:01] <_ami_> carabia: lawsuit?
[02:00:26] <carabia> Hold on. He'll tell you.
[02:06:07] <Casper> MarkX: ! Deliver! me want to go to bed, I need to knoooooow! :D
[03:52:16] <_ami_> Casper: still up? :)
[05:03:00] <_ami_> one q, if i put arduino to one of sleep mode, do i need to call setup functions again? e.g. pinMode(13, OUTPUT) is set at setup(). do i need to do it again when i am waking up? in short, does avr remembers its peripherals's old state?
[05:10:44] <LeoNerd> sleep just stops the CPU clock and related. all the peripheral registers remain
[05:15:14] <_ami_> LeoNerd: got it. thanks
[05:19:56] <Gerritjan> question i have a Nucleo board and i want to make a server with queuelist with user priority, but it it possible that i add some boost lib.
[05:27:21] <_ami_> Gerritjan: whats the flash size available?
[05:28:35] <_ami_> btw, why can't you just use http://playground.arduino.cc/Code/QueueList ?
[05:29:19] <Gerritjan> 512K
[06:09:37] <jaggz> what's the URL to that one usb programmer someone in here makes?
[06:10:34] <jaggz> dave or something?
[06:16:43] <Lambda-Aurigae> Tom_itx
[06:16:51] <Lambda-Aurigae> and I don't know how many he has left.
[06:17:08] <Lambda-Aurigae> and,,apparently it doesn't work with atmel studio 7
[06:17:21] <Lambda-Aurigae> you would have to use avrdude to upload with it.
[06:18:02] <Jartza> also, RikusW makes usb programmer
[06:18:04] <Jartza> U2S
[06:20:47] <Jartza> it's LUFA / avrisp compatible, and can be used as HVSP/HVPP too, which is great
[06:20:55] <Lambda-Aurigae> kewl.
[06:21:50] <Lambda-Aurigae> I started writing code for pic16f1454 to make a usb programmer for AVR just for the fun of it.
[06:22:27] <Lambda-Aurigae> should need nothing but a usb plug, the pic, and some wire to make a programmer.
[06:23:03] <Lambda-Aurigae> maybe a couple of caps to stabilize things a little.
[06:27:15] <Jartza> heh
[06:27:28] <Jartza> I actually built avr programmer out of attiny85 too
[06:27:34] <Jartza> ...which might not surprise anyone
[06:27:41] <Lambda-Aurigae> the dang chip runs usb full speed without an external crystal.
[06:27:43] <Jartza> it also had USB :)
[06:27:52] <Jartza> and no external crystal either
[06:28:02] <Lambda-Aurigae> but not usb full speed...it's low speed.
[06:28:05] <Jartza> true
[06:28:19] <Lambda-Aurigae> and I have several computers that v-usb devices won't work on.
[06:28:48] <Jartza> I had some issues with it too, until I got better diodes
[06:29:45] <WormFood> diodes?
[06:30:18] <WormFood> you don't need diodes to use v-usb, unless you want to run things at the wrong voltages
[06:30:21] <Lambda-Aurigae> WormFood, for v-usb to work properly you put zener diodes on the D+ and D- lines
[06:30:30] <Lambda-Aurigae> if you don't run it at 3.3V anyhow.
[06:31:51] <Lambda-Aurigae> I have laptops here with usb-3 ports that won't enumerate v-usb devices consistently(one not at all) no matter what hardware and voltage setup I use.
[06:32:03] <WormFood> you'd be better off to put a pair of diodes in series with the power, to reduce the voltage to the AVR
[06:32:36] <WormFood> I've had no problem with my usb3 and any v-usb devices. So far, everything works fine
[06:32:52] <WormFood> But under Linux. I don't use Winblows.
[06:33:01] <Lambda-Aurigae> same here.
[06:33:18] <Lambda-Aurigae> the HP laptop and my desktop machines work fine.
[06:33:27] <Lambda-Aurigae> but the three dell laptops here all have issues with v-usb.
[06:35:31] <WormFood> Dinner time for me. Chat later. 再见
[06:36:42] <Jartza> well. as said, I got it working with machines where it didn't work previously by changing the diodes
[06:37:01] <Jartza> can't remember now what diode I used, cause I'm not home
[06:42:40] <Jartza> http://www.mouser.fi/ProductDetail/Vishay-Semiconductors/BZX55C3V6-TAP/?qs=sGAEpiMZZMtQ8nqTKtFS%2fKNhUV17y0qNmB83ajCHpzw%3d
[06:42:45] <Jartza> I'm pretty sure they were these
[08:39:42] <inflex> Is there a way in Eagle to specify that a part pad from a library is not subjected to the min/max scaling rules when added to a schem/PCB?
[08:43:43] <LeoNerd> you might want #eagle or ##eagle or somesuch
[10:05:12] <Tom_itx> you can edit it
[10:05:33] <Tom_itx> make a custom part pad from it
[10:12:58] <WormFood> But, that's too much like...*gasp*...WORK!
[10:34:52] <Emil> Hey
[10:35:09] <Emil> Which form of the iir filter's is most efficient (cycles wise) to calculate?
[11:26:53] <kre10s_> Emil, Fir is simplest to implement.
[12:22:35] <Emil> kre10s_: but heavier to calculate
[14:19:24] <goddard> Jartza: it is async
[14:20:06] <goddard> Jartza: ive manage to get some data back, but sending with just Serial_SendByte doesn't display anything. If I do Serial_SendString I get funny characters.
[14:20:23] <goddard> so not sure how people usually convert data over serial while using USART
[14:20:43] <goddard> trying to display it as some text in a gui app
[14:21:04] <goddard> if i send data like "Hello"
[14:21:05] <liwakura> "funny characters" rang the "clock issue" bell in my head
[14:35:07] <MarkX> goddard, are you sending the strings as long?
[14:35:17] <MarkX> like L"hello world"
[14:35:41] <MarkX> err sorry not long, i meant literal
[15:19:23] <liwakura> goddard: also nice nick.
[15:20:53] <newb1234567> hello
[15:20:58] <Jartza> evening
[15:21:29] <newb1234567> i would like to get started with avr and was wondering what would be a good beginner 8bit avr ?
[15:22:08] <twnqx> i don't think they are that different
[15:22:52] <twnqx> probably would just recommend one of th eusb-enabled megas, 32u2 or 32u4
[15:22:58] <twnqx> the usb-enabled*
[15:24:05] <newb1234567> whats the difference between the 32u2 and 32u4
[15:34:07] <goddard> MarkX: no but i will try that
[15:34:15] <goddard> liwakura: thanks brother
[15:34:47] <liwakura> when i was playing vega strike i used a goddard-class confederate bomber ship
[15:35:22] <liwakura> i could even destroy capships with close torpedo-firing flyby's
[17:45:26] <Lambda-Aurigae> they stopped production on vega strike.
[17:45:47] <Lambda-Aurigae> err...development.
[17:47:48] <liwakura> sadly
[17:47:54] <liwakura> 2014 last commit
[17:48:23] <liwakura> you know that game?
[17:48:31] <liwakura> like, played it, Lambda-Aurigae?
[17:50:57] <Lambda-Aurigae> played it
[17:50:58] <Lambda-Aurigae> hacked it
[17:51:02] <Lambda-Aurigae> cheated the hell out of it!
[17:51:04] <Lambda-Aurigae> but, yeah.
[17:51:12] <Lambda-Aurigae> it was like Elite on steroids.
[17:51:24] <Lambda-Aurigae> and I still play Elite...or,,ooLite
[17:52:21] <Lambda-Aurigae> in vegastrike I had a small agile fighter with the firepower of the death star.
[17:54:43] <liwakura> the Beholder laser gun :D
[17:54:53] <Lambda-Aurigae> I made my own weapons
[17:54:59] <liwakura> didn't got that far
[17:55:00] <Lambda-Aurigae> then hacked them into my ship rather than buying them.
[17:55:21] <Lambda-Aurigae> I could destroy an asteroid base with one shot.
[17:55:23] <liwakura> The Beholder is the green alien drone, probably for debugging purposes
[17:55:45] <liwakura> Its laser is 1-hitting everything
[17:55:54] <Lambda-Aurigae> kewl.
[17:56:12] <liwakura> but the Beholder can somehow be killed by Tesla Capships
[17:56:12] <liwakura> dunno why
[17:56:56] <liwakura> did you also got missions like "few buck for killing this 5 ships" and when you arrived, you got 5 heavily armed agesipolis carriers
[17:58:19] <Lambda-Aurigae> yup.
[17:59:01] <liwakura> also the bug of big transport ships like gleaner or ox being stuck in landing boxes for normal ships?
[17:59:11] <liwakura> also, have you tried the fucking mk. 32
[17:59:15] <Lambda-Aurigae> never noticed that.
[17:59:26] <Lambda-Aurigae> it's been,,,3 years since I played at least.
[17:59:32] <liwakura> similar here
[17:59:40] <Lambda-Aurigae> I'm more into KSP these days.
[18:01:32] <goddard> liwakura: didn't even know about that game....sounds fun though
[18:01:56] <Lambda-Aurigae> goddard, it was...mostly 3D space trading and fighting game.
[18:02:08] <Lambda-Aurigae> like Elite only with better graphics and more stuff to do.
[18:02:50] <goddard> I always think those games are so cool I just never have the time to sit down and play them haha
[18:03:02] <Lambda-Aurigae> I play a bit then hack and cheat.
[18:03:07] <goddard> haha
[18:03:16] <Lambda-Aurigae> it's single player though...I don't remember if there was a multiple player mode.
[18:03:25] <goddard> That is what I liked doing in Baldur's Gate II
[18:03:27] <Lambda-Aurigae> might have been but I don't remember.
[18:03:37] <goddard> modding and learning about the mechanics of the game
[18:03:52] <Lambda-Aurigae> I've been modding things in KSP lately.
[18:04:08] <Lambda-Aurigae> super efficient engines that can take a ship to space on 10 gallons of fuel.
[18:04:08] <kre10s_> Alignment is turned off by default for avr-gcc right?
[18:04:37] <twnqx> it probably aligns to the avr's word size.
[21:07:27] <rue_house> void send(unsigned char d) {
[21:07:27] <rue_house> unsigned char m;
[21:07:27] <rue_house> for( m = 0x80; m != 0; m >>= 1) {
[21:07:27] <rue_house> if (m & d) {
[21:07:27] <rue_house> push1();
[21:07:28] <rue_house> } else {
[21:07:30] <rue_house> push0();
[21:07:32] <rue_house> }
[21:07:34] <rue_house> }
[21:07:36] <rue_house> latch();
[21:07:38] <rue_house> }
[21:07:40] <rue_house> can anyone see an obvious error I'm missing?
[21:08:48] <cehteh> what do you expect to happen?
[21:09:03] <rue_house> it should send the data as serial, MSB first
[21:09:18] <rue_house> unless I made another error, its always sending 0
[21:10:13] <cehteh> did you verify that push1();latch() really sends a 1?
[21:10:35] <rue_house> I pulled them from other working code, however...
[21:11:32] <rue_house> rising edge...
[21:12:54] <rue_shop5> ... no falling edge...
[21:13:17] <rue_shop5> and the 164 is rising edge...
[21:13:33] <rue_shop5> there is a headache
[21:18:02] <sabor> rue_shop5: https://paste.apache.org/I1DS
[21:18:17] <sabor> the output looks good
[21:18:32] <sabor> the problem must be something else
[21:19:06] <sabor> if push0/1 are ok then maybe you really only feed zeroes to this function?
[21:20:29] <cehteh> my thinking
[21:45:00] <hoplite> rue_house: maybe a stupid question, but are you right shifting and then setting equal to 1 in your for loop declaration?
[21:47:22] <hoplite> nah...right shift with 1, then assign m to the result...ignore that question ;o)
[21:47:39] <WormFood> push(m&d?1:0) <-- I'd replace push0/push1 with a function
[21:50:50] <WormFood> obviously, wouldn't change how it works, but would make it more compact, and arguably easier to read.
[21:54:34] <cehteh> WormFood: did you noticed my LDO recommendation few days ago?
[21:54:59] <WormFood> I don't think so
[21:55:14] <cehteh> you asked for a vreg ... look at lm2931
[21:55:34] <cehteh> cheap and very reliable, good protection .. but has some strange properties
[21:55:59] <cehteh> huge output cap needed, and never ever use it where undervoltage may happen
[21:57:10] <cehteh> also its a bit picky about the cap, ceramics dont work, but you dont have 20-100µF ceramics anyway :D
[22:23:44] <WormFood> cehteh, I'm checking it out. Thanks for the suggestion.
[23:24:46] <rue_house> hmm
[23:33:18] <rue_house> ok, exerp'd, the send command works