#avr Logs

Mar 31 2017

#avr Calendar

01:14 AM daey_ is now known as daey
01:30 AM daey_ is now known as daey
01:49 AM daey_ is now known as daey
01:55 AM daey_ is now known as daey
02:35 AM daey_ is now known as daey
04:17 AM polprog: custom tone generator? https://www.youtube.com/watch?v=WLXQgcx8qTI
04:17 AM polprog: he's gone :(
04:26 AM Emil: Always annoying when people dont use a server
04:37 AM julius___: you mean like a bouncer?
04:45 AM Emil: eh?
04:45 AM Emil: No I mean a server
04:55 AM Snert: how do you IRC if you don't use a an IRC server?
05:10 AM mangul is now known as shangul
05:19 AM polprog: you use some dubious "gui clients"
05:20 AM polprog: i'd be okay if they joined in the morning and parted in the evening
05:20 AM polprog: what drives me mead is when people ask a question and they are gone after a minute
05:21 AM specing: thats why you always wait 1h before answering nicks you have never seen before
05:35 AM Emil: polprog: post the picture
05:46 AM polprog: Emil: don't be so unpatient ;)
05:46 AM polprog: impatient*
05:46 AM polprog: https://puu.sh/v4m21/69cd356fd4.png
06:00 AM Emil: you left out the mounying holes?
06:02 AM polprog: oh, i forgot
06:03 AM Emil: also why is there one big track on bypass resistors 1 and 2?
06:04 AM polprog: the ground fill didn't want to connect
06:04 AM polprog: i'll tweak the traces to remove it
06:04 AM Emil: interesting
06:05 AM polprog: done ;)
06:05 AM Emil: new pic
06:07 AM polprog: https://puu.sh/v4mJ7/d00f13ead2.png
06:08 AM polprog: gtg
06:08 AM Emil: what's your track width and clesramce btw?
06:08 AM Emil: and if you hand solder you want to use handsolder footprints
06:09 AM Emil: if you use paste then nvm
06:33 AM Jartza: d'oh
06:33 AM Jartza: seems the arduino nano has some crappy oscillator
06:33 AM Jartza: thought it's 16MHz but in reality it seems to be 15.92
06:34 AM Jartza: talking from nano to my octapentaveega yielded some crap characters sometimes
06:34 AM Jartza: but raising the baudrate to 9640 and the problems were gone, lol
06:52 AM Emil: Jartza: measure it
06:58 AM Jartza: Emil: "seems to be" means, I checked with oscilloscope :)
06:58 AM cehteh: Jartza: you got the nano which is meant to be cooled with liquid nitrogen :D
07:12 AM julius___: specing, 1h....thats why i never get answers ;)
07:56 AM Emil: julius___: switch to a server
08:05 AM julius___: what do you mean by server`
08:06 AM Emil: Any computer than you can have on all the time
08:06 AM Emil: Like a VPS
08:06 AM Emil: or a raspi
08:06 AM julius___: ah ok
08:06 AM julius___: im playing around with GRE tunnels at the moment...gets me disconnected sometimes
08:09 AM julius_: ok, i switched to a server
08:11 AM Tom_L: i cut to store
08:28 AM Tom_L: \
08:37 AM cehteh: julius_: got your pump problem solved?
08:58 AM polprog: Emil: the thick track's width is 1mm wit .2 mm clearance
09:44 AM rue_house: polprog, logic level fets?
09:46 AM rue_house: hmm not for really fast switching eh?
09:50 AM polprog: it's typical on/off
09:50 AM polprog: no pwming
10:11 AM Emil: rue_house: as long as gate capacitance is not too much, one could pwm that still
10:13 AM Emil: polprog: I would have used 0.25 for signals and clearance
10:14 AM Emil: also are you hand soldering?
10:18 AM polprog: yeah, i'm hand soldering
10:19 AM polprog: you think there should be the special footprints?
10:31 AM Lambda_Aurigae: Emil, I just have irc running on my i7 laptop all the time.
10:32 AM Lambda_Aurigae: I get disconnected maybe once a week.
10:48 AM polprog: Lambda_Aurigae: i think it would be cheaper to get a vps
10:49 AM Emil: Lambda_Aurigae: yes?
10:49 AM Emil: polprog: there _are_ special footprints
10:49 AM Emil: When selecting them, just choose 0805_handsoldering
10:49 AM Emil: (if that is the size you are using)
10:49 AM Emil: use the same footprint for the leds, too
10:50 AM Emil: for the mosfets I would probably extend the fins unless you did that already
10:50 AM Emil: Lambda_Aurigae: if you don't move it, it acts like a server ;)
10:50 AM polprog: Emil: i nkow, i did use the handsoldering footprints
10:50 AM polprog: but not here
10:51 AM polprog: i'll manage
10:51 AM polprog: if not ill use paste
11:44 AM xentrac: why was it necessary to put the ATtiny2313 ground connection at the entire opposite corner of the chip from the Vcc pin?
11:47 AM LoRez: xentrac: lots of chips do that.
11:54 AM xentrac: yeah, the 7400 series was where I first encountered it
11:54 AM xentrac: but I never wanted to make an ISP programming clip for a 7400-series chip
11:56 AM xentrac: is there some reason for it? like, if you plug in the chip backwards, it'll take longer to burn the chip up if you're dragging down the power supply rails with all the input clamp diodes at once? :)
12:10 PM Lambda_Aurigae: Emil, or a forever on workstation.
12:10 PM Lambda_Aurigae: xentrac, they did it just to piss you off most likely.
12:41 PM jerware: moin.
12:41 PM jerware: I'm looking for an EEPROM that I can program with my AVR Dragon.
01:53 PM davey_: Hello! May someone explain me how to calculate data of curve of some specific gas sensor? Look at the code on http://sandboxelectronics.com/?p=196 (H2Curve float array)
01:55 PM specing: julius_: indeed
02:10 PM Emil: jerware: just take any eeprom you can find pretty much
02:13 PM Emil: find
02:16 PM Lambda_Aurigae: an avr dragon can be used to program just about any eeprom out there with the proper hookup and software.
04:16 PM polprog: Lambda_Aurigae: can you elaborate on that dragpn eeprom programming?
04:34 PM Lambda_Aurigae: polprog, avr dragon is just an avr with some bits attached and special software.
04:35 PM Lambda_Aurigae: it can be reprogrammed to become whatever you wish.
07:09 PM Smidge204: I've noticed that the .hex file contains more data than is shown in the memory viewer of AtmelStuido when using the simulator. If there any documentation about what the extra bytes are for?
07:10 PM Smidge204: My intent is to craft a .hex file for programming the EEPROM via avrdude, since what I've been reading about how to do it through AtmelStudio seems rather cumbersome
07:32 PM Casper: Smidge204: google: intel hex format
07:32 PM Casper: and, what do you mean by more data?
07:32 PM Casper: if you go by size, sure
07:32 PM Casper: if you go by actual content, no
07:33 PM Smidge204: There is more content in the .hex file than in the memory viewer
07:34 PM Casper: and how did you determined that there is more?
07:34 PM Smidge204: By looking at it :D
07:34 PM Casper: then you don't know
07:36 PM Smidge204: I don't know what I see? :/
07:36 PM Casper: yup
07:36 PM Smidge204: http://i.imgur.com/nFy2vfp.png So what do you see?
07:38 PM Smidge204: I see 11 bytes before and 6 bytes after the actual program memory
07:38 PM Casper: I see 0 bytes at the end
07:39 PM Smidge204: So what are the "DC 00 00 00 01 FF" bytes that are int he .hex file but not in the program memory?
07:39 PM Casper: no
07:40 PM Casper: DC is the checksum of the line
07:40 PM Smidge204: You're being a weasel about the word "content" and we both know it :p
07:40 PM Casper: and the 00000001F is the end of file
07:41 PM Casper: so I see 0 bytes after, and 0 before
07:41 PM Casper: the first line basically say: "this data go in flash"
07:41 PM Casper: the last line is basically "section done"
07:42 PM Casper: https://en.wikipedia.org/wiki/Intel_HEX
07:42 PM Smidge204: My question was prompted because there was clearly more in the .hex file than the program memory. You pointed me towards the Intel format which I'm now reading about... but you're being a pedantic dick about it
07:43 PM Smidge204: There is very clearly more data in the hex file, it's just not PROGRAM data. What's all you had to say.
07:44 PM Casper: the memory viewer have all the data that is in the .hex
07:44 PM Smidge204: Yes
07:44 PM Casper: so no, there is not more data in the .hex
07:44 PM Smidge204: There clearly is. You even explained what that data is.
09:19 PM enhering: Good night
09:29 PM rue_shop3: Smidge204, whats up with hex files?
09:30 PM Smidge204: Hi. That issue has been resolved, and I seem to ahve successfully programmed the eeprom of my ATtiny25 with a handcrafted hex file
09:31 PM Smidge204: Now I'm working on reading that data back out in my program and trying to figure out what I'm doing wrong with that
09:55 PM Smidge204: ...and now that problem is solved. It helps when a subroutine isn't overwriting a register you were using as an address pointer.
09:56 PM rue_shop3: hmm
09:56 PM rue_shop3: whats the source? asm? c?
09:56 PM Smidge204: assembly
09:57 PM rue_shop3: what are you up to that has you hand editing hex files?
09:57 PM rue_shop3: :)
09:57 PM rue_shop3: serial number?
09:57 PM Tom_L: likely the same as you writing code in brainfuck
09:57 PM rue_shop3: :)
09:57 PM Smidge204: Since the ATtiny has such limited program space, I wanted to stuff some string constants and calibration tables into EEPROM
09:58 PM rue_shop3: yea, you can do that in asm
09:58 PM rue_shop3: you specify a block is for the eeprom
09:58 PM rue_shop3: the asm should make a eeprom.hex
09:58 PM Smidge204: Trying to figure out how to do this through AtmelStudio was just pissing me off, so fuck it it's only 128 bytes, I'll write it out manually
09:58 PM rue_shop3: ah
09:58 PM rue_shop3: your using studio
09:58 PM Smidge204: mm
09:58 PM rue_shop3: I have a bin to .hex utility
09:59 PM rue_shop3: you can feed it a file and it'll hex it
09:59 PM Tom_L: voo doo
09:59 PM rue_shop3: dosn't have an address offset option tho
09:59 PM Smidge204: I might write my own actually
09:59 PM rue_shop3: :/
09:59 PM rue_shop3: you gonna waste the effort I went thru to make mine?
09:59 PM Smidge204: Seems so!
09:59 PM rue_shop3: and you havn't even seen the code
09:59 PM rue_shop3: :(
10:00 PM Smidge204: I'm sure it's beautiful. I wouldn't want to sully it with my heathen ways
10:00 PM rue_shop3: I actually dont remember if it was a hack or not
10:00 PM rue_shop3: I was working with 24cxx eeproms
10:00 PM rue_shop3: storing wav files on them
10:02 PM rue_shop3: also used it for making rom state machines
10:02 PM rue_shop3: I was borred and thought I'd do it for hackaday
10:03 PM Smidge204: God help me if I ever get that bored
10:03 PM rue_shop3: maybe bordom will be the final straw to converting myself to a machine
10:03 PM Thrashbarg_ is now known as Thrashbarg
10:03 PM rue_shop3: ah, well, I have a robot arm waiting for the pullies I just made
10:09 PM Smidge204: I can finally start figuring out how to use the ADC on this thing now
10:11 PM Smidge204: Five weeks ago I was overjoyed just to finally get a damn LED to blink :/
10:11 PM Tom_L: hah
10:12 PM Smidge204: Since then I wrote my own I2C bitbang routine, functions to handle sending data to the LCD module in 4-bit mode, and a function to convert an 8-bit value to a 3-char ASCII string (with leading zeros replaces with spaces)
10:16 PM rue_shop3: k, we could have helped
10:17 PM rue_shop3: and basically, you are following the path of things EVERYONE has done
10:17 PM rue_shop3: your going to write a hobby servo pwm library soon, or later
10:18 PM Smidge204: mebbe. Luckily I don't have any hobby servos in the house
10:18 PM rue_shop3: not to mention RTC
10:18 PM rue_shop3: you doing it all in assmebly?
10:18 PM Smidge204: Yus
10:18 PM rue_shop3: huh
10:18 PM rue_shop3: may I ask why?
10:19 PM Smidge204: Because assembly is easier than C for me
10:19 PM rue_shop3: C is assembly
10:19 PM rue_shop3: with easier math handling
10:19 PM Smidge204: Kinda? There's a lot of history here
10:20 PM rue_shop3: what did you program (hardware wise) before?
10:20 PM Smidge204: I did 8052 assembly and Z80 machine code in high school 20 years ago, and took x86 assembly in college as a technical elective.
10:21 PM rue_shop3: ah
10:21 PM rue_shop3: hmm
10:21 PM Smidge204: Outside of that, I'm assuming some really trivial Arduino stuff doesn't count
10:21 PM rue_shop3: yea, the avr is a nice step from z80 / 8052
10:22 PM rue_shop3: at some point, your going to 'give in' and go with C
10:22 PM rue_shop3: it'll happen in your own accord, given time
10:22 PM Smidge204: "At some point" will probably be when I have more than 2K of program memory to work with
10:23 PM rue_shop3: I still have a z80 with 256k eeprom and 256k ram, and an isa bus... made that up just a few years ago
10:23 PM rue_shop3: 2k?
10:23 PM rue_shop3: tiny13?
10:23 PM Smidge204: ATtiny25
10:23 PM rue_shop3: ah
10:23 PM rue_shop3: I started with mega32
10:23 PM rue_shop3: have you every walked a dissassembly of the apple IIe rom?
10:24 PM rue_shop3: some awesome tricks in there
10:24 PM Smidge204: No?
10:24 PM rue_shop3: I learned a lot
10:24 PM Smidge204: <-- Not a CS major
10:24 PM rue_shop3: <-- just a nerd
10:24 PM rue_shop3: wait geek or nerd?
10:24 PM rue_shop3: or hardware hacker... damnit
10:24 PM Smidge204: How much self esteem do you have? :D
10:24 PM rue_shop3: >:/ who needs to teach the cat to close the damn door
10:25 PM Smidge204: Make a gadget that closes the door
10:25 PM Smidge204: RFID tag on the cat
10:43 PM Smidge204: hmmm how screwed am I that the math I want to do involves natural logs? :D
10:44 PM Smidge204: Probably better off with a lookup table and two-way interpolation
11:32 PM JanC_ is now known as JanC