#avr Logs

Feb 17 2018

#avr Calendar

12:01 AM nuxil: thouse sockets are not a manditory on the walls here. just in the fusebox for the stuff that requires it. wet rooms. kitchen, outside wall sockets etc.
12:30 AM HighInBC: gfcis are only requires if an outlet is withing 2 meters of a water source here
12:30 AM HighInBC: a sensible precaution
01:14 AM nuxil: https://www.youtube.com/watch?v=GYLBjScgb7o just lol.
01:25 AM unregisteredandu: nuxil: he found the meaning of his life
01:26 AM nuxil: hehe
04:14 AM LeoNerd: Does anyone know of an AVR programmer that monitors/controls target power, to the point of having a display reading in mA? If not, I suspect I've just thought up my project for the weekend
04:14 AM LeoNerd: and additionally, I wonder if I can do an SSD1306 from an Attiny84
04:15 AM antto: pls, add xmega PDI support
04:15 AM antto: no, actually, i wish i could program xmegas with the parallel port
04:15 AM LeoNerd: Oh.. I'm going to build it around my Pololu programmer
04:16 AM LeoNerd: The Pololu is nice, except it doesn't provide target power, so I end up not using it. The bit I'll be making will be the power controller around it
04:16 AM LeoNerd: And possibly a level shifter on the front, to do 3V3 as well
04:16 AM antto: oh wait, i forgot that xmega is 3.3V only
04:17 AM antto: that makes things harder for parallel port :/
04:37 AM unregisteredandu: LeoNerd: i have added a buffer and a power supply switch mosfet pair to my dapa parallel port programmer ;)
04:37 AM unregisteredandu: avrdude suports power and tristate function
04:38 AM unregisteredandu: to display mA add a multimeter/panel meter in series
04:39 AM unregisteredandu: antto: openocd supports xil parallel port programmer like avrdude
04:39 AM unregisteredandu: (JTAG)
04:40 AM antto: uhm, should that ring a bell?
04:41 AM unregisteredandu: your xmega supports JTAG right?
04:41 AM antto: probably, but i disable it
04:41 AM unregisteredandu: i mean programming not the debugging
04:41 AM antto: no idea
04:42 AM unregisteredandu: i remember i cant program xmega with dapa
04:42 AM unregisteredandu: though i never tried
04:42 AM unregisteredandu: can avrdude program xmega
04:42 AM antto: thing is, i got a programmer at work (the avrisp2 clone) which has PDI..
04:43 AM antto: it's not too cheap, but IMO it's worth its moneyz
04:43 AM antto: however, it has issues with avrdude above 5.x
04:43 AM antto: so i'm practically stuck with avrdude 5.10 or some such old version
04:43 AM unregisteredandu: anyway why would you xmega ?
04:44 AM antto: why? cuz they are better
04:44 AM unregisteredandu: you can get a 32 bit arm for the same price
04:44 AM unregisteredandu: or cheaper
04:44 AM antto: who's gonna write the code for that?
04:44 AM antto: you?
04:44 AM unregisteredandu: umm, gcc?
04:45 AM antto: gcc -pls -now -blinkthisled -andmanymorethings ?
04:45 AM unregisteredandu: there is a thing actually :)
04:45 AM antto: i think you can get a whole computer even cheaper than an ARM
04:46 AM antto: there are places where you can buy old computers by weight ;P~
04:46 AM antto: example: 5kg? 5bucks
04:47 AM antto: and i *could* write the code for that ;P~
04:48 AM unregisteredandu: antto: https://github.com/svrnuke/STM32-Library-V3.5/blob/master/Project/STM32F10x_StdPeriph_Examples/GPIO/IOToggle/main.c
04:48 AM unregisteredandu: nah
04:48 AM unregisteredandu: well ok sometimes i get computers for free, but they are pentium 3
04:49 AM Thrashbarg: I got this machine for free and it's an i5 >_>
04:50 AM antto: coding for atmega/xmega is easy, i can do it
04:50 AM unregisteredandu: antto: this is approximate 2 usd http://www.st.com/en/microcontrollers/stm32f103.html
04:50 AM antto: programming atmegas is also easy, you can do it with a range of programmers, even with a parallel port
04:50 AM unregisteredandu: Thrashbarg: good deal ;>
04:50 AM Thrashbarg: I thought so heh
04:51 AM unregisteredandu: antto: yeah i use parallel dapa too for atmega
04:51 AM unregisteredandu: but i should have an usb crap too ;/
04:52 AM antto: i once went to see what this ARM thing is about, downloaded a bunch of datasheets and documents, and i really couldn't make much sense of it
04:53 AM unregisteredandu: antto: yeah check this out, i have chosen stm32 arms too for next project
04:54 AM unregisteredandu: the datasheets are kind of big but you dont have to use everything if you dont want to
04:54 AM unregisteredandu: it is like a pc
04:54 AM unregisteredandu: these things have dma
04:54 AM antto: eh?
04:54 AM antto: xmega has dma, i don't use it ;P~
04:54 AM unregisteredandu: though this simple type cant use sdram yet ;(
04:55 AM antto: xmega can use sdram iirc
04:55 AM unregisteredandu: via software? ;P
04:55 AM * antto has the feeling that he sounds like a fanboi
04:55 AM antto: no idea, i'm not using it
04:56 AM antto: all i know is that you can slap on external memory and it becomes part of the address space
04:56 AM unregisteredandu: antto: i am being sensible
04:56 AM unregisteredandu: i will not buy an xmega for the same price as a 32 bit arm
04:56 AM antto: i think some atmegas might have it too
04:56 AM antto: sure, that probably makes sense for you
04:57 AM unregisteredandu: antto: you need to know the differences to make a judgement
04:57 AM antto: and i can't drive, so i'll take the bus
04:57 AM unregisteredandu: antto: you dont have to believe me, read the datasheets.
04:57 AM antto: about what?
04:58 AM unregisteredandu: about both devices
04:58 AM unregisteredandu: and compare them
04:58 AM unregisteredandu: maybe even the features is enough
04:58 AM unregisteredandu: first few pages
04:59 AM antto: as i said, that's all great
04:59 AM unregisteredandu: i have atmega168s too.
05:00 AM antto: sometimes i get a bit annoyed that talking about ARM in this channel is encouraged >:/
05:00 AM antto: maybe i should leave
05:01 AM unregisteredandu: lets talk about ladies
05:02 AM antto: i'm all ears..
05:40 AM LeoNerd: Why is it *every single time* I start a new project on a breadboard which is using an I²C bus, it takes me a surprisingly long amount of time to remember to put the pullup resistors on the bus?
05:42 AM nuxil: lol
05:51 AM nuxil: LeoNerd, what project have you started on now ?
06:00 AM _nexxus__ is now known as _nexxus_
06:01 AM Arch-TK is now known as atk
06:04 AM Jartza: hmmh, okay
06:05 AM Jartza: digikey can program attiny10 devices
06:05 AM Jartza: 12 cents per chip plus 12€ for reel
06:05 AM Jartza: quite peanuts, then
06:12 AM cehteh: minimum order? one reel?
06:13 AM nuxil: sounds like you need a lot of chips since you need them pre programmed.
06:14 AM nuxil: Jartza, you got soooo many small devices/dev boards that you can setup a small factory programming like 1000 atinys per hours :p
06:18 AM polprog: CNC head moving a pogo pin ISP header :P
06:40 AM cehteh: polprog: haha a friend actually tried that once
06:40 AM cehteh: with the hobbyking programming stamp
06:40 AM cehteh: but mis-adjusted the Z-Axis and smashed it :)
06:46 AM cehteh: https://hobbyking.com/de_de/atmel-atmega-socket-firmware-flashing-tool.html dat one, quite handy otherwise
06:47 AM nuxil: nice
07:41 AM Jartza: nuxil: well, the need is 500-1000 attinys, I'd rather not program them myself
07:41 AM Jartza: and the circuit itself prevents flashing when chip is attached
07:41 AM Jartza: as there's so little pins
08:04 AM pepijndevos: How can I pass a pointer to an inline assembly block, such that I can std to it? https://paste.ubuntu.com/p/Chp8929yg4/
08:04 AM nuxil: yea. not trival doing 1000 one by one :p
08:05 AM pepijndevos: It tells me Assembler messages: pointer register (Y or Z) required `,' required constant value required garbage at end of line pointer register (Y or Z) required `,' required garbage at end of line
08:07 AM pepijndevos: But I'm already giving it "b" which should mean Y or Z, and I don't know where it wants more comas...
08:09 AM nuxil: pepijndevos, https://pastebin.com/LZwcqDnC this example helps ?
08:10 AM Emil: LeoNerd: hahaha :D
08:10 AM Emil: Jartza: better get the code right the first time ;)
08:10 AM nuxil: ^^
08:14 AM pepijndevos: nuxil, not immediately I'm afraid. I see you're using the 'e' modifier too, but I think I'm maybe making a stupid syntax mistake with STD.
08:15 AM nuxil: missing lpm instuction?
08:15 AM pepijndevos: The original code was std Z+Y1, AC1 and earlier movw ZL, FILTER_POINTER
08:17 AM LeoNerd: FUUUCK
08:17 AM LeoNerd: I can't drive an SSD1306 from an ATtiny. Not enough RAM
08:17 AM LeoNerd: I need an entire KiB of backing space. I have 512 bytes in total
08:17 AM nuxil: get a eeprom 24C02
08:17 AM nuxil: or something like that :p
08:18 AM pepijndevos: So I'm trying to tell GCC "please put &thisFilter->filterNodes[Y1] inside the Y or Z register.
08:19 AM pepijndevos: The fact that it's telling me there is a missing comma and garbage and it needs a constant value, makes me think I just completely fucked up the syntax.
08:19 AM nuxil: you may want to try Jartza's ASM Helpdesk :p idk who else in here writes lots of asm.
08:19 AM nuxil: :p
08:27 AM pepijndevos: WTF, it just gives me r30, I deleted a space and then it said unknown opcode str30
08:27 AM LeoNerd: I think I'll just have to do more direct rendering to the OLED.. as long as everything is aligned to multiples of 8 rows, for whole bytes
08:29 AM pepijndevos: oh wait, r30 *IS* Z
08:29 AM pepijndevos: Then wtf is its problem...
08:30 AM nuxil: Z is in 2 parts tho.
08:30 AM nuxil: Z_low and Z_High iirc.
08:34 AM polprog: cehteh: that hobbykinf thingy is pretty cool
08:34 AM polprog: Z is r30:r31
08:57 AM pepijndevos: Hmmm, my code is still wrong. It seems like it manages to reset the whole chip.
09:19 AM polprog: i wrote a blinker for this stm8 dev kit and it WORKS!
09:19 AM polprog: on the first try!
10:05 AM nuxil: polprog, stop this blasphemy ;)
10:09 AM nuxil: polprog, time to step it up a bit.. your next project -> https://www.youtube.com/watch?v=JLdB0WEixjM :)
10:14 AM Emil: LeoNerd: update to a bigger processor
10:14 AM Emil: mcu*
10:14 AM Emil: don't slab on some additional chip
10:16 AM Emil: nuxil: >dat overshoot jitter
10:16 AM Emil: Someoen didn't tune the pid
10:23 AM nuxil: what you mean pid? where would they use a pid in ther ? to me it just seems like preset airpressure that shoots out the balls, knowing the mass of the ball. trajectory (elivation, and speed at set pressure), you know where each ball will land. all the rotating stuff. is surly on a stepper motor system
10:25 AM nuxil: unless the stepper motors are controlled with pid.
10:32 AM cehteh: Emil: i bet they just used fatass steppers and no pid the backlash comes just from mechanical elasticity
10:51 AM Emil: cehteh: highly likely
10:52 AM Emil: well
10:52 AM Emil: no
10:52 AM Emil: actually
10:52 AM Emil: you see the jitter?
10:52 AM cehteh: i dont care much
10:52 AM Emil: i don't think thatä's just elastical
10:52 AM cehteh: closed it,
10:53 AM cehteh: i've seen 12 years old kids building more awesome marble machines :D
10:53 AM cehteh: besides some time ago there was this all mechancial marble music machine on the web remember?
10:53 AM cehteh: https://www.youtube.com/watch?v=IvUU8joBb1Q
10:54 AM cehteh: https://www.youtube.com/watch?v=IOmFgIxvVzc
10:54 AM nuxil: yea i seen that marble machine. cool project
10:55 AM cehteh: thats just a render :D
10:55 AM nuxil: the 1st link
10:55 AM cehteh: i meant the 2nd
10:55 AM nuxil: i meant the Wintergatan
10:55 AM nuxil: :p
10:56 AM nuxil: i seen both bofore actually
10:57 AM nuxil: *be
12:12 PM polprog: nuxil: wow, thats a cool vid :P
12:21 PM LeoNerd: I wonder if I'm doing ADC wrong here on this ATtiny84, or something... it seems that if I leave the reference selection set at VCC then I can make readings of the internal 1.1V ref OK enough. But, if I swap between reading that, and reading something else with a different reference, then even though I remember to reset the reference setting before I read that, the numbers go all different
12:22 PM LeoNerd: _even_ though I make one ADC reading then throw it away, between every swap of the reference
12:27 PM nuxil: I have just set the refence to vcc and use this isr https://pastebin.com/yRMehn6g to swap between each channel. then i just read the adc_n_value whenever i need. im not sure if this helps, and im sure this is a silly way of doing it but it work. :)
12:28 PM LeoNerd: Well some things I want to measure with int1v1 as reference
12:33 PM nuxil: well yah. i just need to quantize the input with vcc as ref.
12:35 PM nuxil: how does setting the vref to 1.1 works anyway, never used it? with the ref set to 5v its easy in theory, 5/adc res. ~ 48mv per step.
12:35 PM nuxil: *? mark a bit late. :p
12:42 PM unregisteredunsu: [12:37] <LeoNerd> Why is it *every single time* I start a new project on a breadboard which is using an I²C bus, it takes me a surprisingly long amount of time to remember to put the pullup resistors on the bus? - i used internal weak pullup in mcu...
12:42 PM unregisteredunsu: you are able to change a port from low to weak pullup
12:43 PM LeoNerd: Yeah, but the internal pullups aren't really good enough for I²C
12:43 PM unregisteredunsu: LeoNerd: worked for ps2 at 40kHz bidirectional mode
12:46 PM polprog: sourceforge is down temporarily
12:46 PM LeoNerd: Gah. this is really annoying me now.
12:46 PM unregisteredunsu: whooohoooo 20 x 12A+ PMOSFETS ready to use
12:47 PM unregisteredunsu: hiya polprog, sup dude
12:47 PM polprog: unregisteredunsu: what part no are those?
12:47 PM unregisteredunsu: uh oh i have about 21 types :)
12:47 PM unregisteredunsu: here is one http://pdf.datasheetcatalog.com/datasheet/toshiba/2851.pdf
12:48 PM LeoNerd: I select VCC on the ADC mux. I make 5 readings, discard the 1st and average the remaining 4. I get a value of VCC. This is fine. If *after* that I switch the mux to a different channel, I get totally different numbers next time round
12:48 PM unregisteredunsu: seems like an awesome buck regulator lithium/led driver charger
12:48 PM polprog: looks like a soic
12:48 PM unregisteredunsu: polprog: yes it is
12:49 PM polprog: i have used some nice soic mosfets in my raspi motor controller board,
12:49 PM unregisteredunsu: stepper? :)
12:49 PM polprog: BSO033N03 22A 30V
12:49 PM polprog: yeah stepper
12:50 PM unregisteredunsu: polprog: i give you a tip then https://www.infineon.com/dgdl/irf7309.pdf?fileId=5546d462533600a4015355f21d981b12
12:50 PM polprog: but in this stepper i used a to-92 BUZ11, easier to solder on a 100 mil rasterboard
12:50 PM unregisteredunsu: 2 of these give you a holf bridge
12:50 PM unregisteredunsu: able to handle 3A
12:50 PM unregisteredunsu: *half
12:50 PM polprog: nice
12:51 PM polprog: damn i love C
12:51 PM unregisteredunsu: polprog: you just need like 1us delay before turning on the alternate side after turning off one
12:51 PM polprog: #define PD_CR1 (*(volatile uint8_t*)0x5012) <-- this just works
12:52 PM polprog: the blinker program worked at the first try, im so proud of myself
12:52 PM unregisteredunsu: why wouldn't it? ;>
12:52 PM polprog: maybe C99 is not the best thing but still great
12:52 PM unregisteredunsu: define is a macro, and type casting is standard
12:52 PM polprog: i have to define variables at the beginning of the function
12:52 PM polprog: ikr
12:53 PM LeoNerd: Ahh... it seems I need a bit of a delay time whenever I switch the MUX bits
12:53 PM LeoNerd: if I wait 10msec after setting mux, then it's all fine
12:55 PM unregisteredunsu: LeoNerd: ya, and discard first x samples
12:55 PM unregisteredunsu: cont remember now maybe 100 cycles of adc?
12:55 PM unregisteredunsu: a
12:55 PM LeoNerd: I already discard 1 sample
12:55 PM LeoNerd: But it seems that wasn't enough
12:56 PM unregisteredunsu: i think 10us-1ms time might be needed
12:58 PM unregisteredunsu: found my code
12:59 PM unregisteredunsu: after switching adc on 8MHz atmega i waited 500us
12:59 PM unregisteredunsu: and it worked
01:52 PM polprog: gj, SDCC
01:54 PM polprog: register |= (1<<0) results in a bset instruction, but (1<<6) loads memory from pointer, loads constant to register, does or, stores result in pointer
01:54 PM polprog: my sides
01:55 PM polprog: its totally stupid, even with code size optimizations
01:55 PM polprog: loads the same value to a register even though it doesnt change
01:57 PM polprog: what the actual
01:57 PM polprog: uses incw (increment word) for a uint8_t
01:58 PM * polprog closes the generates assembly listing, and hides it so no soul shall ever see it
02:01 PM polprog: enough
02:01 PM polprog: ugh
02:04 PM MrFahrenheit: eelab temporarily biolab https://www.dropbox.com/s/yipvi8kesp5suy6/2018-02-17%2020.16.36.jpg?dl=0
02:05 PM polprog: looks like fun
02:06 PM MrFahrenheit: I used gelatin for the thing, not even sure if it will work
02:06 PM polprog: i did dna sequencing (and electrophoresis) at school once in such lab
02:06 PM MrFahrenheit: nice
02:06 PM MrFahrenheit: I just wanna grow some fungi
02:07 PM polprog: we were sequencing some vegetable known and unknown samples to identify them
02:07 PM polprog: just unplug your fridge, you dont need a lab for that :P
02:07 PM MrFahrenheit: :P
02:08 PM polprog: or move in to a british flat :P
02:08 PM MrFahrenheit: I wanna steal some penicillium roqueforti from some gorgonzola and make my own
02:08 PM polprog: tasty
02:08 PM MrFahrenheit: I could buy it of course, but it's more fun this way
02:08 PM MrFahrenheit: and cheaper
02:09 PM MrFahrenheit: need to make a test tube rack soon
02:11 PM polprog: wg
02:11 PM polprog: whats that?
02:12 PM MrFahrenheit: just a small rack to put test tubes in
02:13 PM MrFahrenheit: like so https://images-na.ssl-images-amazon.com/images/I/41TTmO8wz4L._SX342_.jpg
02:13 PM polprog: ah that!
02:13 PM polprog: and i was wondering whats a test tube in english :P
02:16 PM MrFahrenheit: it's a pretty bad name, yes
02:19 PM MrFahrenheit: I should have bought agar on ebay instead of using gelatin... turns out you only need 10g of it per litre, and it's $5 for 50g
02:22 PM polprog: https://puu.sh/zpUey/afdf317f46.png
02:22 PM polprog: Emil: ^
02:31 PM unregisteredunsu: [21:01] <MrFahrenheit> eelab temporarily biolab https://www.dropbox.com/s/yipvi8kesp5suy6/2018-02-17%2020.16.36.jpg?dl=0 a- no incubator, no pressure cooker, no airfilters, no germicidal lamps, an unplugged fridge is better biolab than that
02:32 PM polprog: well, cool things cost money
02:32 PM unregisteredunsu: temp controlled hotplati is a must too
02:32 PM unregisteredunsu: polprog: you can make many stuff
02:33 PM polprog: mu chem gear was only an erlenmayer flask, before i lost it somewhere
02:33 PM unregisteredunsu: you probably have some glass stuff
02:35 PM polprog: not gonna use kitchenware ofc
02:37 PM unregisteredunsu: polprog: why do you think the fungi would care if you drunk out of that cup?
02:37 PM polprog: no, but id care if i did electrolysis in that cup before
02:39 PM unregisteredunsu: get an ultrasonic cleaner and paper towels
02:39 PM unregisteredunsu: though i would use different cups for drinking and chemicals/biolab
02:43 PM polprog: thats my point, really
02:44 PM MrFahrenheit: unregisteredunsu, I'm just growing fungi, not anthrax
02:45 PM MrFahrenheit: also, that yellow metal cylinder is an alcohol lamp
02:46 PM MrFahrenheit: cute, isn't it
02:46 PM unregisteredunsu: no
02:46 PM polprog: i thought its a jar :P
02:47 PM unregisteredunsu: temp controlled hotplate :P
02:48 PM unregisteredunsu: you can make one using 1 opamp, 1 resistor and a mosfet, and an ntc
02:48 PM unregisteredunsu: -55 - 125C
02:48 PM MrFahrenheit: no
02:49 PM polprog: how would i generate cold with a resistor? :P push the current another way ? :P
02:49 PM unregisteredunsu: a hotplote can only go above ambient ude :)
02:49 PM unregisteredunsu: d
02:50 PM unregisteredunsu: but if you build a NPFET bridge and use a peltier you can go below
02:50 PM MrFahrenheit: polprog, you need a temperature sucker
02:50 PM polprog: yeah, like a peltier or something
02:50 PM MrFahrenheit: it's like a dark sucker, but for temperature
02:50 PM MrFahrenheit: http://www.ultimatecampresource.com/site/camp-activity/the-dark-sucker-theory.html
02:51 PM unregisteredunsu: MrFahrenheit: but peltier heater/coolers are not theory
02:52 PM MrFahrenheit: unregisteredunsu, I think you might have a personality sucker in your room
02:55 PM unregisteredunsu: https://www.youtube.com/watch?v=42OxV_VNMMU
02:55 PM unregisteredunsu: Peltier thermoelectric cooler - heater
02:56 PM polprog: https://youtu.be/eafMX_kcBNE?t=34s heres a lightbulb that generates darkness
02:58 PM MrFahrenheit: amazing
02:59 PM polprog: indeed
03:00 PM MrFahrenheit: polprog, that assembly is for avr?
03:00 PM polprog: no, stm8
03:00 PM MrFahrenheit: I see
03:00 PM polprog: dont worry, just ranting there
03:00 PM polprog: :P
03:01 PM MrFahrenheit: cause I checked, and bset only works on one register, avr uses sbi for setting bits in random regs
03:01 PM polprog: yeah, i see that avr is just a better design from this experience
03:01 PM polprog: stm8 has very little registers
03:02 PM polprog: its more "traditional", even z80 has more
03:02 PM unregisteredunsu: https://www.youtube.com/watch?v=5PpszjaNF8s - waiting for tha ZAP,BANG
03:03 PM MrFahrenheit: didn't the z80 just have like 3 or something, A, B, Y...
03:03 PM polprog: this says it has more http://z80-heaven.wikidot.com/the-registers-and-memory
03:04 PM polprog: id have to look at the z80 book to check
03:04 PM polprog: stm8 has an accumulator (8 bit), X, Y, SP, (16 bit)
03:04 PM unregisteredunsu: polalso related The Wasp Zapper Extreme !! 5600 Volts !! [part 2] https://www.youtube.com/watch?v=xO3TvAb_WcM
03:05 PM polprog: and 24 bit PC and 8 bit CC (condition, like SREG)
03:05 PM MrFahrenheit: I think I was confusing it with the 6510 that the commodore had
03:10 PM polprog: niters
03:11 PM polprog: MrFahrenheit: yes, the register file looks *exactly* like 6502
03:12 PM polprog: my dad came into my room, ive shown him that and he got nostalgic :P
03:12 PM polprog: night
03:12 PM MrFahrenheit: night
03:36 PM unregisteredunsu: :) https://www.youtube.com/watch?v=VQk3jsIkmz0 https://www.youtube.com/watch?v=N7rqlNrCuq0
03:36 PM unregisteredunsu: 3D printing trimmer-line Nylon.
03:39 PM MrFahrenheit: nice
04:00 PM Emil: polprog: is that stm8 asm thing or something?
04:00 PM Emil: did you figure out the problem?
04:02 PM polprog: gah i took a shower and i dont wanna sleep noe
04:02 PM polprog: now*
04:03 PM polprog: i figured out that it might be because i installed sdcc from the debian repo
04:03 PM polprog: ill try and compile the newest version and check tomorroe
04:03 PM Emil: >sdcc
04:03 PM Emil: pls no
04:04 PM polprog: i literally facepalmed when i saw that bitshift implementation, immediately thought about you
04:16 PM polprog: ping Emil
04:16 PM Emil: polprog: yup?
04:16 PM Emil: wait
04:16 PM Emil: you think I write shit code?
04:17 PM polprog: no, i was thinking about you telling me not to touch sdcc :P
04:17 PM Emil: ah lol :D
04:17 PM Emil: Well there you have it >:D
04:17 PM polprog: :x
04:18 PM polprog: looks like ill have to define sbi and cbi macros
04:18 PM polprog: not the topic way ofc
04:18 PM polprog: if the new version doesnt fix that
04:18 PM absynth is now known as dan2wik
04:24 PM unregisteredunsu: polprog: hahah
04:27 PM unregisteredunsu: will i be able to fix my samsung ml 2570 or it will parts? :/ i suspect it is either braindead or a stepper motor shorted
04:28 PM polprog: open up, examine
04:28 PM unregisteredunsu: if it is braindead i have a free 1200x1200 dpi laser printer development platform, i just need an stm32 arm to power it
04:29 PM polprog: it should have an arm inside already :P
04:29 PM unregisteredunsu: it doesnt lel
04:29 PM unregisteredunsu: it has a chip with some arm neto on it but not stm32
04:29 PM unregisteredunsu: *note
04:30 PM polprog: it should have a programmable cpu inside*
04:30 PM unregisteredunsu: i dont know what it is, samsung made a chip for its printer
04:31 PM unregisteredunsu: my bet is it has a power on hour counter and it commits suicide after 3 years power on
04:31 PM unregisteredunsu: or 1 year
04:31 PM polprog: huh
04:31 PM polprog: maybe
04:32 PM polprog: i have a samsung toner one that had a resettable eeprom in its toner cartrifge
04:32 PM polprog: dge*
04:32 PM polprog: if you diagnosed the fail, lambda could help you if he was here
04:33 PM unregisteredunsu: kek
04:33 PM unregisteredunsu: polprog: i already hacked the toner counter
04:34 PM unregisteredunsu: my toner does not have chip :)
04:35 PM * polprog puts a parabolic hyperboloid shaped pringle in unregisteredunsu's toner cartridge
04:35 PM polprog: btw why you have such a long nick
04:38 PM unregisteredunsu: it wos longer but it got truncated :(
04:39 PM unregisteredunsu: My new hobby will be to make an stm32 arm main control board for laser printer, this one has a rotating mirror for the laser scanner so the laser on off must be timed, if i share the code open then i can also piss off samsung i dont like people selling crap to me
04:40 PM polprog: ./configure --enable-microdots
04:40 PM unregisteredunsu: :)
04:40 PM unregisteredunsu: also rollback and apply multiple layers! :)
04:42 PM unregisteredunsu: the fusing is question in this case
04:42 PM polprog: try not to burn your house down :D
04:43 PM unregisteredunsu: polprog: the fuser temp control is the simplest part
04:43 PM unregisteredunsu: it has an ntc temp sensor allegedly
04:44 PM unregisteredunsu: i dont really see that complicated thing inside ;/
04:44 PM unregisteredunsu: even a 72MHz stm32 would do
04:47 PM unregisteredunsu: though if one would want to store a raw 1200x1200 dpi bitimage at 8 bit / dot then it would require 121,680,312 bytes for an A4 paper
04:48 PM unregisteredunsu: polprog: you neeed pfets?
04:48 PM polprog: reminds me of how i was trying to print an image on an oki dot matrix
04:49 PM polprog: over parport, speed one line per minute
04:49 PM unregisteredunsu: :)
04:49 PM polprog: sure could use some pfets
04:49 PM unregisteredunsu: parport can easily do 40kHz rate too
04:49 PM polprog: that oki probably couldnt
04:49 PM polprog: oki ml 3320
04:50 PM unregisteredunsu: and it has at least 8 bit output! + strob
04:50 PM unregisteredunsu: e
04:50 PM polprog: if you search how to set it up on linux you will probably find my posts
04:50 PM unregisteredunsu: that is already 320 kilodots per second 1 bit
04:50 PM polprog: at some point later on i gave it another try
04:51 PM polprog: found a forum post, read it, "wow this dude has a very similar problem", read nick, it was me from the past
04:51 PM unregisteredunsu: you have a 44415 dpi dotmatrix printer ? :) that takes 1 minute to make a line ?
04:52 PM polprog: emulates an ibm proprinter 2
04:53 PM unregisteredunsu: a scanline on a4 paper on a 1200 dpi x8 mit grayscale laser printer is 8646 bytes
04:53 PM polprog: plus where did you get that ridiculous dpi
04:54 PM unregisteredunsu: and it must be done 13989 times on a4 paper
04:54 PM unregisteredunsu: polprog: from the parallelport speed :)
04:54 PM unregisteredunsu: at 40khz only...
04:55 PM polprog: i dont think thats how it works
04:55 PM unregisteredunsu: note that parallel port can do proper communication at 1MHz-2Mhz too
04:55 PM unregisteredunsu: that is EPP/SPP mode
04:56 PM polprog: i did look at parport under posix/linux
04:56 PM unregisteredunsu: EPP has a typical transfer rate in the order of 500KB/S to 2MB/S.
04:58 PM polprog: ive seen winamp plugins that bitbang hd44780 over parport
04:58 PM polprog: fun
05:00 PM unregisteredunsu: :)
05:00 PM unregisteredunsu: do you use linux?
05:01 PM polprog: what do you think
05:01 PM unregisteredunsu: https://lcd4linux.bulix.org/wiki/HD44780
05:01 PM polprog: seen that
05:01 PM polprog: probably the most obscure piece of software ive seen so far
05:17 PM unregisteredunsu: polprog: so how does arm work out ?
05:17 PM unregisteredunsu: stm32f103 ?
05:18 PM polprog: pretty well
05:18 PM unregisteredunsu: my choice is STM32F373
05:18 PM polprog: opencm3 takes care of all the weird things and rgister oddities
05:18 PM unregisteredunsu: :)\
05:19 PM unregisteredunsu: and so you have no bugs
05:22 PM MrFahrenheit: plates turned out fine, btw https://www.dropbox.com/s/u4fvq4ke5drb7i2/2018-02-17%2023.47.17.jpg?dl=0
05:23 PM unregisteredunsu: huh 512 byte fram https://cdn.sos.sk/productdata/56/db/b2851e20/fm-24-c-04b-g.pdf
05:23 PM unregisteredunsu: MrFahrenheit: hahah 3d printed plates ?
05:24 PM polprog: check out fm25v10
05:24 PM unregisteredunsu: polprog: good but not enough :(
05:24 PM MrFahrenheit: unregisteredunsu, I don't get it
05:24 PM unregisteredunsu: 595 + sram? :)
05:25 PM polprog: what
05:25 PM polprog: dont
05:28 PM unregisteredunsu: polprog: hmm this is 8MB https://shop.micross.com/pdf/AS8S2M32PEC.pdf
05:33 PM polprog: unregisteredunsu: wow thats huge
05:34 PM polprog: plus stm32 doesnt have a 32 bit port, you d have to use 2x16 and it would kill the speed
05:34 PM polprog: afaik
05:34 PM polprog: use an fpga
05:35 PM unregisteredunsu: polprog: my samsung printer has 32MB ram ;/ https://www.cnet.com/products/samsung-ml-2570-printer-monochrome-laser-series/specs/
05:35 PM unregisteredunsu: how the heck it prints 1200x1200 dpi then
05:35 PM unregisteredunsu: it can't store the whole bitmap
05:36 PM unregisteredunsu: what a coincidence, i scale 1200x1200 dpi down to 600x600 dpi and i get 32MB required memory
05:42 PM unregisteredunsu: so the solution to printer memory is buffer underrun protection +circular/ring buffer
07:51 PM rue_bed: why not just use marlin?
07:52 PM rue_bed: what are you up to
08:51 PM Ameisen: I wish that AVR had a slight semblance of an MMU so there could be real ring buffers (where the memory block is aliased after itself)
11:16 PM Casper: Ameisen: it is, after the 64k memory space...
11:16 PM Casper: just no smaller one...
11:31 PM day__ is now known as day