#avr Logs

Sep 01 2020

#avr Calendar

05:50 AM vmt: twnqx: software should be free and you should not be paid to write it! also music, movies and shows alike!!
05:56 AM vmt: i'm assuming you work in software and given you're in freenode i don't think i'm all that wrong
05:56 AM vmt: you must recognize, accept, guilted and defeated by your privilege for writing software, ergo you should actually pay other people to be able to do so!
05:56 AM vmt: be guilted and defeated*
06:00 AM * twnqx shrugs
10:48 AM strata_ is now known as strata
01:55 PM TechChristoph: boards you can recommend to play around with avrs ?
01:55 PM TechChristoph: im working with a breadboard right now
01:56 PM TechChristoph: is stk500 a good tool to play around with ?
01:57 PM TechChristoph: but i have no idea
02:04 PM cehteh_: arduino nano clones are pretty universal and good for breadbaord and cheap
02:04 PM cehteh_: then the pololu avr programmer is among the fastest ones around but usually a usbasp for $4 or less works as well, just slower
02:05 PM Rab: TechChristoph, are you wanting to evaluate through-hole parts, or would an embedded dev board be fine?
02:06 PM TechChristoph: i still have usbasp
02:07 PM TechChristoph: but sometimes i have to plug in and plug out the chip many times to test on my actual hardware
02:07 PM TechChristoph: so maybe the pins get a little bit lets say "messed up"
02:07 PM TechChristoph: though-hole would be nice
02:09 PM Rab: TechChristoph, maybe you can just add a ZIF socket to your current setup: https://www.ebay.com/itm/372633120122
02:09 PM TechChristoph: i have one
02:09 PM TechChristoph: but which pins fits to which pin on the avr ?
02:10 PM Rab: TechChristoph, do you plug the AVR into your breadboard for programming?
02:10 PM TechChristoph: yes
02:10 PM TechChristoph: but i want to change
02:11 PM TechChristoph: Rab, maybe i can send you a picture of the zif socket i have ?
02:11 PM Rab: Then just plug in the ZIF socket the same way, and plug your AVR into that. You'll need a socket with enough pins at the right spacing for your AVR.
02:11 PM Rab: TechChristoph, sure!
02:11 PM TechChristoph: i can solder
02:11 PM TechChristoph: so i have to solder that on a platine of course ?
02:12 PM TechChristoph: maybe i try that
02:13 PM TechChristoph: Rab, your on Internic ?
02:17 PM cehteh_: TechChristoph: ISB means in system programming no need to unplug, when you dont have very stange things on the ISP pins
02:18 PM cehteh_: i even programmed chips with a piezo beeper on one pin, worked as well
02:18 PM cehteh_: just made a horrible sound+
02:18 PM cehteh_: and the other ports of the hardware .. thats what i set up on another breadboard first and test in isolation before moving over to the mcu
02:21 PM Rab: TechChristoph, STK500 works OK, but it's pretty old. I'm not sure the firmware supports newer AVRs.
02:22 PM Rab: And it doesn't solve the issue of socketing chips.
02:24 PM nohit: i used to have 3 STK500s
02:36 PM TechChristoph: cehteh_, i use a mosfet to fix that
02:37 PM cehteh_: fix what?
02:37 PM TechChristoph: when i use isp
02:37 PM TechChristoph: sometimes i get some strange errors
02:37 PM cehteh_: ideall i leave the isp pins unconnected unless i really need them
02:37 PM TechChristoph: but everything is hooked up the right way
02:38 PM cehteh_: but then it was never pa problem for me
02:38 PM TechChristoph: so i use a 2n7000 mosfet to fix that
02:38 PM TechChristoph: i use a atmega168p
02:38 PM cehteh_: mostfeld/driver can have its own issues, you need to pull it down (or up) and you must not power the driven side then else you wont gain much
02:39 PM TechChristoph: must be very old in some way
02:39 PM TechChristoph: cehteh_, yes thats what i do
02:39 PM cehteh_: 2n7000 are nice, but need to be handled with care
02:40 PM cehteh_: https://public.pipapo.org/PrototypeBoard.jpg
02:40 PM TechChristoph: yes they can burn fast.
02:40 PM cehteh_: the gate is sensible to static electricity
02:40 PM cehteh_: not burning
02:40 PM TechChristoph: cehteh_, you use that for programming ?
02:40 PM cehteh_: nah thats some prototype product for a machine
02:40 PM TechChristoph: machine what kind of ?
02:41 PM cehteh_: there is the isp connector on top thats used for programming, it has no bootloader
02:41 PM cehteh_: and usb is used for the controlling pc
02:41 PM cehteh_: https://public.pipapo.org/20190411_112616.mp4
02:41 PM cehteh_: automated microscope
02:43 PM TechChristoph: an arduino nano on it ?
02:43 PM cehteh_: close but not exactly, a board LeoNerd sells, with a 328pb
02:43 PM TechChristoph: ah ok i see
02:43 PM TechChristoph: nice
02:44 PM TechChristoph: can i replace a microcontroller with a eeprom ?
02:44 PM TechChristoph: maybe not
02:44 PM cehteh_: eh what?
02:44 PM cehteh_: replace?
02:44 PM cehteh_: eeprom is just a memory technology
02:45 PM TechChristoph: well i can write some data on it right ?
02:45 PM cehteh_: doesnt even say how you access it
02:45 PM cehteh_: from a microcontroller yes :D
02:45 PM cehteh_: you attach eeprom to microcontrollers
02:45 PM TechChristoph: if i develop an alu maybe i can write opcodes with switches or so
02:45 PM cehteh_: avrs have small eeproms build in
02:45 PM TechChristoph: yes i know
02:46 PM cehteh_: most eeproms tals some protocol, i2c or spi commonly
02:46 PM cehteh_: talk
02:46 PM TechChristoph: someone programmed an avr with pure 0 and 1
02:46 PM cehteh_: few nowadays have busses
02:46 PM TechChristoph: have seen that on youtube some time ago
02:46 PM cehteh_: yeah thats possible
02:47 PM cehteh_: you could morse a program into it using the ISP header
02:47 PM cehteh_: would be pretty painful :)
02:47 PM TechChristoph: but its also possible to program an eeprom with wires
02:47 PM cehteh_: and prolly take a year
02:47 PM TechChristoph: sure
02:48 PM cehteh_: spi eeprom can be programmed the same way
02:48 PM TechChristoph: and you can not fix errors of course :-)
02:48 PM TechChristoph: if you programm it with 0 and 1 by hand
02:48 PM cehteh_: i dont kow ho much but you have some protocol overhead, have to read the docs for that
02:49 PM cehteh_: but could be over 100% overhead
02:49 PM TechChristoph: i2c spi
02:49 PM cehteh_: spi is simpler in this regard
02:49 PM TechChristoph: could be
02:49 PM TechChristoph: cehteh_, but wat isnt:-)
02:49 PM TechChristoph: i do it for fun
02:50 PM TechChristoph: not for production
02:50 PM cehteh_: so you supply the clock with a flip switch and have a programming button or whatever sending 0's and 1's along the clock
02:50 PM TechChristoph: anyway
02:50 PM TechChristoph: yes
02:50 PM TechChristoph: with a 555 timer
02:50 PM TechChristoph: you can generate the clock
02:51 PM cehteh_: now for programming lets assume you need to send the command, the address and the value .. thats at least 3-4 bytes to program a single byte
02:51 PM TechChristoph: one button for 0 an 1 for ones
02:51 PM cehteh_: good luck hacking 1kb data into a eeprom this way
02:51 PM TechChristoph: yeah would be painfull
02:51 PM cehteh_: of course error free
02:51 PM TechChristoph: :-)
02:51 PM TechChristoph: i don't want to program tetris in that way
02:52 PM TechChristoph: but to just blink some leds
02:52 PM TechChristoph: or so
02:53 PM TechChristoph: must be hard to fix the errors then
02:53 PM cehteh_: glhf
02:53 PM TechChristoph: maybe i can use a lcd-screen to see on which address i am
02:54 PM TechChristoph: an what is loaded
02:54 PM TechChristoph: to switch forth and back
02:54 PM LeoNerd: cehteh_: 3D scanner board maybe?
02:54 PM TechChristoph: i have some sort of this with my hp-calculator
02:55 PM TechChristoph: you can manualy input commands
02:55 PM TechChristoph: and the lcd shows on which adress you are
03:00 PM cehteh_: LeoNerd: ?
03:02 PM TechChristoph: LeoNerd, for what ?
03:03 PM LeoNerd: cehteh_: your linked image above with my 328PB on it
03:04 PM cehteh_: look later :D
03:04 PM cehteh_: see video and my answer
09:19 PM McDonaldsWiFi is now known as enix
09:19 PM enix is now known as McDonaldsWiFi
09:56 PM ColdKeyboard: Anyone have a clue why ATTiny814 would ack every address from 0x00 to 0xFF when TWI address is 0x08 and mask is 0x00 :\
11:38 PM day_ is now known as day
11:41 PM ColdKeyboard: Interesting, so after first I2C transaction, the MCU is holding both SCL and SDA low...
11:41 PM ColdKeyboard: That's not good :)