#avr | Logs for 2016-03-25

Back
[02:30:57] <julius> morning
[10:12:53] <eszett> hi
[10:13:15] <twnqx> er wieder :)
[10:13:37] <eszett> ja klar..
[10:14:34] <eszett> auch geil... hab grad mit meinem händler gesprochen der sagt dass die atmegas32u4 tatsächlich heutzutage leer geliefert werden, weil atmel der produktionsschritt zu teuer geworden ist nen bootloader drauf zu machen
[10:14:43] <twnqx> O_O
[10:14:51] <eszett> aber in den alten datenblättern stehjt noch dass sie mit bootloader geliefertt werdfen!
[10:14:54] <eszett> totale irreführung
[10:15:33] <twnqx> blame microchip :P
[10:15:35] <eszett> zumindest bei TQFN
[10:15:47] <eszett> warum microchip?
[10:15:54] <twnqx> weil die atmel gekauft haben
[10:15:59] <eszett> ach du schei..
[10:16:26] <eszett> Atmel ist ja bekannt als "kleinbastler freundlich" mikrocontroller firma
[10:16:36] <eszett> das ändert sich jetzt wohl langsam ?
[10:17:04] <twnqx> wird sich zeigen
[10:17:17] <eszett> hmm
[10:17:21] <twnqx> so richtig toll, absolut betrachtet, finde ich die eigentlich gar nicht mehr
[10:17:39] <twnqx> wenn ich preis/lestung von kleinen ARMs dagegen halte
[10:18:10] <eszett> es geht ja nicht nur um preis leistung sondern auch um popularität und damit eingehend die grösser der user community, was wiederum wichtig ist für support
[10:18:27] <twnqx> ich hab hier nen nxp lpcxxxx
[10:18:36] <twnqx> ROM bootloader, der sich als usb storage device meldet
[10:18:38] <eszett> was bringt es dir wenn du ein problem hast mit einem kaum benutzten PIC und du findest keine community um das problem zu besprechen
[10:18:51] <twnqx> firmwar4 programmieren? einfach cp a.bin /mnt/arm/
[10:19:10] <eszett> ok verstehe das ist einfacher
[10:20:04] <twnqx> und die avr community hat mir noch nie richtig helfen können ;)
[10:20:08] <eszett> hehe
[10:20:32] <eszett> das ist ja ein schönes zeugnis für den channel hier
[10:20:42] <twnqx> meine probleme sind eher... komplexer ;)
[10:22:04] <eszett> auch geil... im datenblatt steht ein µF kondensator "should be" bei UCAP damit USB funzt
[10:22:14] <eszett> dabei müsste da stehen "Must be"
[10:22:19] <eszett> weil es ohne nicht geht
[10:22:38] <twnqx> ach, datenblätter... hab noch kaum jemals fehlerfreie gesehen, egel von wem
[10:22:38] <eszett> also datenblätter hasse ich wie die pest. sind maul faul, und die paar worte die sie machen sind auch noch irreführend
[10:28:07] <eszett> twnqx: damit sich eine schaltung als usb device meldet, ist doch ein bestimmte handshake-prozedere notwendig, kann man das irgendwie sichtbar machen, über ne art monitor, ne oder?
[10:28:51] <eszett> ich glaube der Atmel sender über die D+/D- leitungen irgendne info an den USB host controller, das es "ihn gibt"?
[10:28:55] <twnqx> also erstmal gibt's da was mit widerstand nach VUSB (oder war es gnd... hmm) um als "present" zu gelten
[10:28:56] <eszett> s/sender/sendet
[10:29:19] <eszett> VUSB?
[10:29:27] <twnqx> +5V USB
[10:29:29] <twnqx> iirfc
[10:29:32] <twnqx> iirc*
[10:29:52] <twnqx> http://www.beyondlogic.org/usbnutshell
[10:30:19] <eszett> ahh, das muss ich mir mal durchlesen .. thx
[10:30:35] <eszett> vielleicht meinst du UVCC
[10:30:48] <twnqx> ich meine die 5V (nominal), die am usb host rauskommen ;)
[10:31:08] <eszett> ja die kommen auch beim atmega an
[10:31:21] <twnqx> http://www.harbaum.org/till/i2c_tiny_usb/schematic.gif R1 da
[10:31:40] <twnqx> das signalisiert iirc ein low-speed device
[10:32:21] <eszett> achso, das wird da "VBUS" genannt. überall sonst ist das "VCC" genannt
[10:32:49] <twnqx> das ist ja nicht zwangsweise das gleiche
[10:33:01] <twnqx> kannst ja nen regler von 5V VBUS nach 3.3V VCC haben und so
[10:33:40] <eszett> also da bin ich mit jetzt nicht ganz sicher, weil ich kann ja meine schaltung auch mit batterie betreiben, also auf den strom vom usb port verzichten. oder? dann müsste ich theoretisch nur D+ und D- mit dem USB port verbinden
[10:35:16] <twnqx> mh
[10:35:40] <eszett> und dann müsste das gerät ja auch als usb gerät erkannt werden oder?
[10:35:47] <eszett> ganz ohne VBUS leitung
[10:36:12] <twnqx> nein
[10:36:21] <twnqx> seite 258 im data sheet
[10:36:28] <eszett> achso
[10:36:53] <twnqx> der schaltet den widerstand (R1 in dem .gif von oben) halt intern im chip
[10:38:07] <twnqx> damit sich der chip erst am USB meldet, wenn der controller konfiguriert ist ;)
[10:38:34] <eszett> oh je das kapier ich jetzt nicht ganz
[10:38:52] <twnqx> also
[10:39:04] <twnqx> ein usb controller oder hub bus ja erkennen, dass etwas am downstream port hängt
[10:39:16] <eszett> ja klar
[10:39:20] <twnqx> und wie schnell es ist
[10:39:33] <twnqx> und dieser widerstand ist das "hallo, hier bin ich signal"
[10:40:04] <eszett> du meinst R1? ich hab gar keinen R1 in meiner schaltung..
[10:40:09] <twnqx> wenn der controller erkennet, dass da was ist, weisst er dem gerät eine eindeutige nummer am bus zu, und liest damm daten wie vendor ID, product ID, etc
[10:40:15] <twnqx> nein nein
[10:40:26] <twnqx> <twnqx> http://www.harbaum.org/till/i2c_tiny_usb/schematic.gif R1 da
[10:40:35] <twnqx> als beispiel, mit externem widerstand
[10:40:35] <eszett> ja verstehe ich schon
[10:40:47] <twnqx> dieser widerstand ist im meta16/32U2/4 schon drin
[10:41:00] <eszett> das is nen pullup an der D- dataline, richtig?
[10:41:01] <twnqx> und wird aktiviert, wenn der usb controller im chip von der software eingeschaltet wird
[10:41:29] <twnqx> und damit das richtig tut, braucht der atmega halt vusb noch
[10:41:35] <twnqx> err vbus
[10:41:40] <eszett> vbus.. ok
[10:41:51] <twnqx> und gnd brauchst du natürlich immer
[10:42:03] <twnqx> also: immer alle vier dignale ;)
[10:42:07] <twnqx> signale*
[10:42:21] <twnqx> and i generally hope noone minds the dialogue in german here ;)
[10:42:27] <eszett> die schlafen alle
[10:42:59] <eszett> also wenn ich jetzt versuche die schaltung nur über D+ und D- mit dem USB port zu verbinden und mir den strom von batterie hole dann wird die schaltung nicht als usb gerät erkannt
[10:43:12] <twnqx> richtig
[10:43:15] <eszett> hmmmm
[10:43:37] <twnqx> gnd kopplung egen den minus pol deiner batterie ist auch IMMER erforderlich, sonst kann der strom ja nicht fließen
[10:43:39] <eszett> was du beschrieben hast sind zwei voraussetzungen für den handshake
[10:44:13] <twnqx> UID kannst du allerdings weglassen, das ist ja für dings
[10:44:14] <twnqx> on-the-go
[10:44:25] <twnqx> (wusste gar nicht dass der u32 das kann...)
[10:44:39] <eszett> glaub schon ja
[10:44:56] <eszett> ja ID brauch ich ned
[10:45:40] <twnqx> außerdem hast du das datenblatt falsch gelesen, der kondensator ist nicht als solches gemeint mit dem "should", sondern nur, dass 1µ der empfohlene wert ist
[10:45:59] <eszett> das ist missverständlich formuliert
[10:46:35] <eszett> klar, wenn man erfahren ist kann man das richtig interpretieren
[10:46:46] <twnqx> finde ich nicht, aber ich kann sehen, wie man es missverstehen kann :)
[10:47:01] <eszett> danke für das einfühlungsvermägen :-)
[10:47:51] <eszett> wofür sind die beiden dioden auf den D- und D+ lines in der schematik?
[10:48:02] <eszett> D1 und D2?
[10:48:08] <twnqx> um die spannung auf 3.3v zu begrenzen
[10:48:10] <eszett> braucht man die wirklich?
[10:48:20] <twnqx> der chip hat keinen echten usb controller da, vergleich das nicht ;)
[10:48:28] <twnqx> nein, nicht mit nem mega-u
[10:48:47] <eszett> gut .. das wollte ich wissen
[10:49:46] <eszett> hmm vielleicht wird meine schaltung deshalb nicht als USB gerät erkannt weil ich dieser pullup auf D- nicht aktiviert ist.. aber wie kann ich das prüfen?
[10:50:02] <twnqx> benutzt du linux oder windows?
[10:50:05] <eszett> windows
[10:50:13] <twnqx> hm schade
[10:50:24] <eszett> was wäre es bei linux?
[10:50:43] <twnqx> da steht ne fehlermeldung "failed to enumerate device" wenn es erkannt wird aber nciht antwortet
[10:50:54] <eszett> sowas könnte ich brauchen
[10:51:16] <eszett> alles was ich bei windows habe ist so ein "ding dong" sound wenn ich ein neues gerät reinstecke und es wird erkannt
[10:51:28] <Evidlo> do most people use USBASP for programming?
[10:51:41] <eszett> Evidlo: many. me, for example
[10:51:52] <twnqx> Evidlo: i guess most use one varaint or another of it, yes
[10:52:07] <Evidlo> are there some chips that can't be programmed with usbasp? I thougth there was a max upload size or something
[10:52:16] <eszett> I bought a USBasp programmer from china for ~ 2€
[10:52:25] <twnqx> though it depends on the chip a bit, like the USB family has a bootloader to flash over usb
[11:45:17] <lorenzo> https://github.com/lcafaro/avr-max31855 aaaand it's done :)
[11:49:01] <twnqx> i wonder what the chip does if it's exposed to the 1770°C
[11:49:26] <twnqx> thercopules are wider range sensors than normal thermistors?
[11:50:04] <lorenzo> twnqx: yeah, no chip to be exposed, just a metal junction
[11:50:40] <lorenzo> I've measured ~1000C easily
[11:51:39] <twnqx> heh
[11:51:49] <twnqx> cool stuff (hot, rather)
[11:53:56] * twnqx is tempted to deadbug a qfp-52
[11:54:10] <twnqx> i probably shouldn't, though...
[13:02:00] <cehteh> so my OSSCAL code adds waaaaaay to much jitter, have to add a generous deadband to the freq
[13:30:41] <flyback> http://realterm.sourceforge.net/
[14:39:24] <rick-monst> hi for some reason my avr32-gcc build can't find fdevopen
[14:40:38] * flyback bites rick-monst
[14:40:41] <flyback> canuck
[14:45:36] <liwakura> hm.
[14:45:59] <liwakura> i have an ardunio nano clone with an CH3400 usb to serial chip
[14:46:33] <liwakura> and i want to solder the flow control pins to the atmega
[14:46:59] <liwakura> but when i look up datasheets, the pinout shows me an 20-pin chip
[14:47:06] <liwakura> but my board has a 16 pin one
[14:48:09] * Casper throws flyback out in the snow that felt last night
[14:48:11] <Casper> o/
[14:48:33] <liwakura> that thing: http://cowfish.org.uk/blog/wp-content/uploads/2015/01/WCH-CH340-1024x865.jpg
[14:49:12] <liwakura> okay, thanks guys
[14:49:20] <liwakura> murphy's laws strikes again
[14:49:27] <liwakura> as soon as i ask you for help, i find it myself
[14:49:33] <flyback> how are you eh-hole
[14:51:06] <Casper> bored
[14:51:16] <Casper> waiting for some drivers to download
[14:51:27] <Casper> then I,ll install them on vista x32... no coment...
[14:55:34] <rick-monst> so is the non-existance of fdevopen expected for avr32 platform? Or likely some weirdness/badness with my toolchain setup?
[14:56:00] <cehteh> maybe just some missing define/flag
[14:56:11] <cehteh> rtfm
[14:56:51] <cehteh> stdio is some ugly kludge on embedded systems anyway
[14:57:17] <cehteh> pulls in a shitload of code and doesnt do much
[14:57:37] <rick-monst> I appreciate that it's not ideal - just trying to establish a first contact with miniPicoLisp on my device and stdio is *somewhat* entrenched in that codebase
[15:02:00] <rick-monst> I was trying to assign stdout using fmemopen, but that seems to blow up when I go to evaluate a dummy lisp expression. stdin via fmemopen apparently works fine and I can run the test successfully if stdout is left undefined. (no way to know if it ran without reading back from stdout though)
[15:03:32] <rick-monst> anyway I did read the manual before coming here and concluded fdevopen should work after #include <stdio.h> .
[15:17:50] <cehteh> i'd rather think about forth on a µC than lisp
[15:22:39] <rick-monst> yes that's the other option - I'm already working with lisp at my day job though so trying first with miniPicoLisp...
[15:23:58] <cehteh> lisp is forth backwards :D
[15:26:28] <rick-monst> hah - did some forth tutorials in preparation for picolisp either not working or being too slow to actually get anything done...
[17:10:53] <liwakura> if i pulse drive an led, may i omit the serial resistor?
[17:14:33] <eszett> hi
[17:16:31] <Casper> liwakura: no
[17:17:01] <Casper> liwakura: you still need to current limit to a safe level, unless your supply impedance is high enought
[17:18:57] <liwakura> hm okay
[17:45:14] <cehteh> some leds can take massively more current at pulsed operation *but* that must be still somewhat controlled
[17:45:37] <cehteh> leds have datasheets too :D
[17:47:00] <cehteh> its not uncommon that the pulsed current is 10x the continous current for short pulses (some µs) and low duty cycles
[17:47:26] <cehteh> enough to kill the avr :D
[17:48:20] <Casper> seen a 100mA IR led with 2A pulse current
[17:48:31] <cehteh> yes .. same here
[17:48:46] <cehteh> thought "wtf, dont look into it"
[17:49:27] <liwakura> uhm, the avr is the reason why im using 1k resistors now
[17:49:37] <cehteh> 1k sounds a lot
[17:49:41] <liwakura> dont have place for additional resistors
[17:49:42] <cehteh> for leds
[17:49:48] <liwakura> its an led matrix, 8 leds
[17:50:05] <liwakura> * 2 x 8 leds
[17:50:32] <liwakura> with optimal resistors they would pull 160mA on the common anode, which is an IO port
[17:50:33] <cehteh> what current per led?
[17:50:37] <liwakura> 20mA
[17:50:53] <cehteh> eh
[17:50:59] <liwakura> but they are usable at 2mA or so
[17:51:01] <cehteh> 1k resistor? 5V?
[17:51:05] <liwakura> yeah
[17:51:05] <cehteh> ah ok
[17:51:21] <liwakura> also, i still have a roll of 1k
[17:51:34] <liwakura> so it was a fast desicion
[17:52:00] <liwakura> back in times where i didn't know how to calc those sizes, i just took 1k for everything
[17:52:14] <cehteh> for the bright position lights on my copter i use lm317 as current regulator
[17:52:29] <cehteh> there is too much voltage difference
[17:52:44] <cehteh> i want optimal brightness
[17:53:32] <cehteh> 47ohm, lm317 .. gives bit over 25mA
[17:54:15] <liwakura> im soldering an 2x 7 segment digit display directly ontop of an arduino nano, i don't think i have much space for other things beside transistors
[17:54:45] <liwakura> and pls dont ask me what im doing, im just messing around because im bored
[17:55:39] <cehteh> lol
[17:57:41] <liwakura> im currently studying engineering and i got into the state where i just could do that stuff if it solved a problem
[17:57:53] <liwakura> now im relearning how to just have fun when soldering
[18:16:09] <TechChristoph_> i want to build a 4 bit cpu from scratch
[18:16:42] <TechChristoph_> some good links or papers
[18:16:50] <TechChristoph_> maybe a book ?
[18:18:20] <Lambda_Aurigae> the ttl cookbook for starters
[18:18:53] <Lambda_Aurigae> that was the most advanced book of digital logic I had when I built mine in the early 80s.
[18:19:14] <TechChristoph_> Lambda_Aurigae: is it fro free on the ned ?
[18:19:16] <TechChristoph_> em net
[18:19:55] <Lambda_Aurigae> I've seen it in pdf form on the internet
[18:20:27] <TechChristoph_> ok
[18:21:03] <Lambda_Aurigae> there are plenty of sites out there on cpu design.
[18:21:22] <Lambda_Aurigae> I built mine from scratch from 74xx series chips with the exception of the ram which was in one ram chip.
[18:21:30] <Lambda_Aurigae> at least part of it was.
[18:21:44] <cehteh> no core memory? ;D
[18:21:50] <Lambda_Aurigae> part was done as flipflops so I could hook LEDs to it so I had a display.
[18:21:51] <cehteh> could be self-build at least
[18:22:03] <Lambda_Aurigae> cehteh, no...I didn't understand core memory when I was 16.
[18:22:13] <cehteh> :)
[18:22:17] <Lambda_Aurigae> otherwise I might have tried.
[18:22:34] <TechChristoph_> em cehteh and with pure transistors ?
[18:22:53] <Lambda_Aurigae> TechChristoph_, core memory isn't transistorized....at least the memory isn't
[18:22:58] <Lambda_Aurigae> the drivers could be I suppose.
[18:23:15] <Lambda_Aurigae> the memory is little magnetic bits with wires run through them.
[18:23:15] <cehteh> TechChristoph: relays
[18:23:23] <TechChristoph_> well i want to build it with transistors
[18:23:37] <cehteh> mosfet or bipolar?
[18:23:38] <Lambda_Aurigae> TechChristoph_, do you have any clue as to how to build digital electronics?
[18:23:48] <TechChristoph_> no
[18:23:52] <cehteh> uhm
[18:23:59] <TechChristoph_> where to start
[18:24:09] <Lambda_Aurigae> and you want to build a processor?
[18:24:12] <Lambda_Aurigae> http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/trangate.html
[18:24:16] <Lambda_Aurigae> learn electronics
[18:24:18] <TechChristoph_> i have some experiences with arduinos
[18:24:20] <Lambda_Aurigae> first
[18:24:32] <cehteh> out of transistors would be really complicated
[18:24:35] <TechChristoph_> and programming
[18:24:35] <Lambda_Aurigae> that's like saying you want to build a car and you drove one once.
[18:24:56] <TechChristoph_> well i don't fear it
[18:25:15] <Lambda_Aurigae> that site has schematics and stuff on digital logic gates done with transistors.
[18:25:36] <Lambda_Aurigae> first, learn electronics from the ground up..
[18:25:44] <Lambda_Aurigae> get the book Getting Started In Electronics
[18:25:50] <Lambda_Aurigae> go through it,,,do all the exercises.
[18:26:11] <TechChristoph_> well i need some transistors to do the calculations
[18:26:16] <TechChristoph_> what about memory
[18:26:21] <Lambda_Aurigae> what about it?
[18:26:31] <TechChristoph_> eeprom ??
[18:26:37] <Lambda_Aurigae> I thought you wanted to build it all with transistors.
[18:26:47] <Lambda_Aurigae> each bit of memory is 4 transistors...a flipflop..
[18:27:02] <TechChristoph_> can transistors save data ?
[18:27:08] <Lambda_Aurigae> for a 4 bit nibble(or byte) it will be 16 transistors.
[18:27:12] <Lambda_Aurigae> learn
[18:27:13] <Lambda_Aurigae> digital
[18:27:15] <Lambda_Aurigae> electronics
[18:27:21] <Lambda_Aurigae> start by learning electronics.
[18:27:24] <TechChristoph_> ok
[18:27:48] <TechChristoph_> then where to start ??
[18:27:50] <Lambda_Aurigae> build the individual little circuits....individual gates..AND, NOT, NOR, NAND
[18:27:54] <Lambda_Aurigae> I just told you
[18:27:59] <Lambda_Aurigae> Getting Started In Electronics
[18:28:09] <Lambda_Aurigae> the best book ever written for beginner electronics.
[18:28:14] <TechChristoph_> Lambda_Aurigae: the site you mentioned ?
[18:28:29] <Lambda_Aurigae> the site I lined assumes you know something about electronics.
[18:28:48] <Lambda_Aurigae> once you have finished that book then that site will make some sense.
[18:28:49] <TechChristoph_> ok
[18:29:15] <TechChristoph_> well i dont have this book
[18:29:21] <Lambda_Aurigae> then
[18:29:22] <Lambda_Aurigae> get it
[18:29:32] <TechChristoph_> where ?
[18:29:41] <Lambda_Aurigae> do you not have internet access?
[18:29:51] <Lambda_Aurigae> or are you on irc through smoke signals?
[18:30:24] <Lambda_Aurigae> http://www.amazon.com/Getting-Started-Electronics-Forrest-Mims/dp/0945053282
[18:30:40] <TechChristoph_> ok i understand
[18:31:10] <TechChristoph_> thanks anyway
[18:31:13] <Lambda_Aurigae> I learned on the first edition of this book
[18:31:16] <Lambda_Aurigae> in the 70s.
[18:32:26] <Lambda_Aurigae> the author literally wrote it,,,with a pencil, on graph paper.
[18:32:44] <Lambda_Aurigae> then they copied his handywork directly....the whole book is hand written.
[18:33:34] <TechChristoph_> ok
[18:33:53] <TechChristoph_> good night
[18:42:27] <Eszett2> in the 70ies?? wow
[18:54:08] <cehteh> i guess i am not the oldest here .. but still my dad was born in 1909 :D
[18:54:56] <Tom_itx> what does that make you?
[18:56:21] <cehteh> nothing
[19:03:40] <cehteh> yay .. clock sync works now, better than ±1%
[19:03:58] <cehteh> and reduced the jitter
[19:25:18] <Lambda_Aurigae> born in 1967 here.
[19:27:46] <Tom_itx> holy crap you're old
[19:28:19] <cehteh> only 3yrs older than me :D
[19:28:30] <Lambda_Aurigae> yeah, I'm an old far.
[19:28:44] * Tom_itx wishes he was that young
[19:34:04] <Lambda_Aurigae> you older than me tommyboy?
[19:34:55] <Tom_itx> apparently
[19:39:46] <Lambda_Aurigae> https://tech.slashdot.org/story/16/03/25/2017200/wrecking-crew-demolishes-wrong-housing-duplex-following-google-maps-error?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Slashdot%2Fslashdot+%28Slashdot%29
[19:39:48] <Lambda_Aurigae> hahahahah.
[19:39:55] <Lambda_Aurigae> now that's a major OOPS1
[19:59:18] <cehteh> The demolition company's CEO dismissed the incident as "not a big deal."
[20:01:25] <Lambda_Aurigae> yeah.
[20:01:30] <Lambda_Aurigae> he must have written a check for the house.
[20:02:35] <cehteh> i wonder what this wooden/cardbox houses in the US cost
[20:02:56] <cehteh> possibly cheap compared to the stone houses here
[20:03:30] <Lambda_Aurigae> in that area, that duplex is probably $150K to $250K
[20:03:43] <cehteh> how much space is that?
[20:04:45] <cehteh> single floor flat is here 300-500 or more euros :D
[20:04:55] <Lambda_Aurigae> not sure...probably good size 3 bedroom duplex most likely.
[20:05:10] <cehteh> K
[20:05:25] <cehteh> but we have thick sandstone walls here
[20:05:34] <Lambda_Aurigae> my place here is 1550 square feet and sold for $40K
[20:05:38] <cehteh> not so easy to demolish
[20:05:43] <Lambda_Aurigae> but I live out in the middle of nowhere.
[20:58:17] <theBear> i woulda just settled and built my house on the edge of nowhere if i were you... not like it gonna be much different to the middle, just less far away to visit me
[23:01:08] <Evidlo> What timer mode should I use if I want an output to toggle each time I get a compare match?
[23:01:19] <Evidlo> and also reset the count
[23:01:51] <Evidlo> Should I use CTC mode and set OCR1A (for toggle) and OCR1C (for reset) to the same value?
[23:20:05] <cehteh> you want to generate a variable frequency?
[23:21:52] <cehteh> CTC would be ok, but you only need one OCR
[23:50:36] <Evidlo> ahh, I can't get reading PB5 working. PB3 works fine