#avr Logs

Dec 11 2018

#avr Calendar

12:00 AM rue_mohr: gonna go start burning supper
12:03 AM Evidlo: let me take a stab at it first
12:06 AM rue_mohr: did you ground all your unused ADC inputs?
12:06 AM rue_mohr: cause I'm pretty sure if you do, you will find your on the wrong channel
12:08 AM rue_mohr: or your uart init is out
12:08 AM rue_mohr: I cant check that off the top of my head cause I'v had mine wrapped in a library for the last 10 years
12:08 AM rue_mohr: oo 16 years
12:09 AM Evidlo: MUX3-0 is all zero, so I should be on ADC0
12:10 AM rue_mohr: you would think sowouldn't ya
12:11 AM * rue_mohr cracks his knuckles
12:11 AM rue_mohr: mkdir Evidlo
12:11 AM rue_mohr: oops, wrong window
12:16 AM rue_mohr: Evidlo, your using an arduino, right?
12:16 AM Evidlo: yes, a Nano clone
12:16 AM rue_mohr: so your not putting the signal on 'a0' right?
12:16 AM Evidlo: I have a0 grounded. Its still reading 255
12:17 AM rue_mohr: a0 isn't adc 0
12:17 AM rue_mohr: a6 is adc6
12:17 AM rue_mohr: a0 is pc0
12:17 AM rue_mohr: maybe I should look that up again
12:17 AM rue_mohr: heh oh yea that.
12:18 AM rue_mohr: ok, sorry, ignore that
12:18 AM * rue_mohr updates the comments in the template)
12:20 AM rue_mohr: can I throw you something to compile and run?
12:21 AM rue_mohr: are you using linux?
12:23 AM Evidlo: yes
12:23 AM rue_mohr: ok
12:25 AM rue_mohr: http://ruemohr.org/~ircjunk/avr/atmega328/Evidlo/
12:25 AM rue_mohr: if you grab those
12:25 AM rue_mohr: and do a 'make' does it go togethor ok?
12:26 AM rue_mohr: will be a type warning, but otherwise it'll make main.hex
12:26 AM Evidlo: what are you having me test? I dont see any adc stuff in there
12:26 AM rue_mohr: nope, you dont do it all at once
12:27 AM rue_mohr: I'm testing to see if that will compile ok on your machine and if your serial is working ok
12:27 AM rue_mohr: if so, were thru the start gate
12:27 AM Evidlo: I know my serial is working because I can see whatever value I put into USART_send() show up in my console
12:28 AM rue_mohr: sure sure, see if it'll make would ya?
12:28 AM rue_mohr: my libraries might be installed in different places than yours
12:29 AM rue_mohr: what type of programmer do you have?
12:29 AM rue_mohr: arduino bootload is a valid answer
12:30 AM rue_mohr: mmm check how supper is burning
12:30 AM Evidlo: yes it works
12:31 AM Evidlo: I get 'Hello terminal' as expected
12:31 AM rue_mohr: perfect
12:31 AM rue_mohr: did you see how the makefile can do the install for you?
12:32 AM rue_mohr: I just need to do make; make install
12:34 AM Evidlo: I used my own makefile on your code
12:34 AM rue_mohr: ok
12:38 AM rue_mohr: ok, this is a leap to this next one
12:38 AM rue_mohr: posting...
12:38 AM rue_mohr: awe I didn't clean it
12:39 AM rue_mohr: http://ruemohr.org/~ircjunk/avr/atmega328/Evidlo/
12:39 AM rue_mohr: ok that should time the values, but puke them repeatedly
12:40 AM rue_mohr: in ascii textness
12:41 AM rue_mohr: give me a progress and I'll walk it forward more
12:42 AM Evidlo: I'm getting various numbers. It all flows together though
12:44 AM Evidlo: ok, I used USART_Transmit to print ADCH and it seems correct
12:47 AM rue_mohr: ok, so now we just add a flag
12:55 AM rue_mohr: http://ruemohr.org/~ircjunk/avr/atmega328/Evidlo/
12:55 AM rue_mohr: final answer?
12:55 AM rue_mohr: can you see any differences from my code to yours (effectivly)
12:55 AM rue_mohr: as you code things, build a library of tested, working functions for doing things
12:57 AM rue_mohr: rue,
12:57 AM rue_mohr: yes?
12:58 AM rue_mohr: option 1 is that he's hammering away on his code and ignoring you
12:58 AM Evidlo: I'm checking differences
12:58 AM rue_mohr: option 2 is that he tried your code, it works and he's trying to figure out what the hell the difference is
12:58 AM rue_mohr: option 3, is that he tried your code and it didn't work
12:59 AM rue_mohr: hmm
01:00 AM rue_mohr: shall we add a buffer overflow light!!!!
01:00 AM rue_mohr: NO
01:00 AM rue_mohr: awe, burn
01:00 AM rue_mohr: shall we close it all and work on... something?
01:00 AM rue_mohr: delta printer math
01:00 AM rue_mohr: hmm thats the alternate eh?
01:00 AM rue_mohr: yup
01:01 AM * rue_mohr ties himself a noose
01:01 AM rue_mohr: tea!
01:01 AM rue_mohr: yes! I'm game for tea....
01:01 AM rue_mohr: but I'm still gonna close everything
01:01 AM rue_mohr: Acz = sqrt(L^2 - (X - Avx)^2 - (Y - Avy)^2)
01:02 AM rue_mohr: Bcz = sqrt(L^2 - (X - Bvx)^2 - (Y - Bvy)^2)
01:02 AM rue_mohr: Ccz = sqrt(L^2 - (X - Cvx)^2 - (Y - Cvy)^2)
01:02 AM rue_mohr: where is my noose?
01:02 AM rue_mohr: tea!
01:02 AM rue_mohr: right, right...
01:02 AM jesseg: hey you're gonna rupture my last living braincell with that sort of math
01:02 AM rue_mohr: its being shot after the trial that I'm not looking forward to
01:03 AM jesseg: rue_mohr, you need to get your mind on something else. I came across this and literally couldn't stop reading it. Short Autobiography of Charles Ponzi.
01:04 AM jesseg: https://pnzi.com/
01:04 AM rue_mohr: who?
01:05 AM jesseg: it's my current belief that he actually never intended to invent the ponzi scam nor did he intend to defraud anybody, but it came about by a combination of different unexpected circumstances, unwittingly created by himself
01:05 AM jesseg: Have you heard of a Ponzi scam?
01:05 AM Evidlo: ok, my problem was that I was doing (8 << ADPS0) instead of (7 << ADPS0)
01:05 AM jesseg: like Madoff?
01:06 AM jesseg: Heard of Bernie Madoff?
01:08 AM rue_mohr: Evidlo, :)
01:08 AM rue_mohr: Evidlo, but you see how I used all tested code?
01:11 AM Evidlo: rue_mohr, yes thanks for the help
01:34 AM rue_mohr: so then, that took me about 1 minute of actual coding, anyone wanna say I'm an insane fake?
10:16 AM [1]MrMobius is now known as MrMobius
10:21 AM [1]MrMobius is now known as MrMobius
12:21 PM [1]MrMobius is now known as MrMobius
01:47 PM nohit: here rue https://www.embeddedrelated.com/thread/5284/standards-and-the-small-business-embedded-developer
09:03 PM rue_: no I guess I'm still just a kook
10:20 PM vmt: rue_: how's the program coming along?
10:36 PM rue_: the cam?
10:55 PM jesseg: no the space launch program
10:55 PM jesseg: :D
11:13 PM rue_: its on the shelf
11:15 PM rue_: I ran into a motif bug and decided that if motif did what I wanted, I'd be done, and that I was either gonna spend most of my time rebuilding motif widgets that did what I need, or writing my own gui that would nonally do what I need, but would continue to do so forever
11:16 PM jesseg: so you're gonna write your own gui?
11:16 PM rue_: I been thinking a lot about extensible frameworks, event systems, etc
11:17 PM rue_: on X, but prolly not even using Xt,
11:37 PM day__ is now known as day