#avr Logs

Mar 29 2018

#avr Calendar

12:05 AM rue_: Ameisen, did you say you have working pcf8574 code for stm32?
12:13 AM Emil: polprog: unices->unix-like
12:15 AM _ami_: rue_, i did sent you the working i2c code for stm32 before?
12:15 AM _ami_: it was for ina219 i think
12:17 AM rue_: oh
12:17 AM rue_: hmm, did it use opencm3?
12:21 AM _ami_: yes
12:21 AM rue_: hmm, I cant find it..
12:21 AM rue_: thought I got a copy, can you link me again?
12:21 AM _ami_: rue_, sent DM
12:24 AM _ami_: i have fancy code for doing i2c transfer via interrupts too. :)
12:44 AM rue_: for the amount of code to do hardware i2c, I'm just about tempted to port fleurrys bitbanged code
12:44 AM rue_: and, its more portable
03:01 AM Jartza: hallo
03:04 AM * Haohmaru haz all teh powah of linux under his fingertips...
03:05 AM * Haohmaru blinks
03:28 AM nohitz: hello
03:41 AM _ami_: Jartza, Hi, long time!
03:41 AM Haohmaru: i installed gcc-arm-none-eabi, it came with newlib and stuff, where do i find its actual headers?!
03:43 AM polprog: hey Jartza
03:44 AM polprog: morninf everyone
03:49 AM _ami_: Haohmaru, well, it depends upon system.
03:49 AM Haohmaru: debian
03:49 AM _ami_: in arch linux, To find the default gcc include path: i do
03:49 AM Haohmaru: the compiler is in /usr/bin
03:49 AM _ami_: echo | arm-none-eabi-gcc -E -Wp,-v -
03:50 AM Haohmaru: O_o that's so intuitive, i love compilers
03:52 AM _ami_: btw, i don't get why arm-gcc is named as gcc-arm-none-eabi in debian.
03:52 AM _ami_: i meant th debian pkg name.
03:52 AM _ami_: the*
03:52 AM _ami_: polprog, evening
03:53 AM Haohmaru: _ami_, how else?
03:53 AM polprog: havent looked at the rest of gcc-arm-* packages
03:53 AM _ami_: Haohmaru, in arch, the pkg names are arm-none-eabi-gcc arm-none-eabi-newlib
03:54 AM polprog: its most likely that there are more arm gcc versions for different arms
03:54 AM _ami_: which installed everything.
03:54 AM Haohmaru: i selected *one* package and it installed everything
03:54 AM Haohmaru: even a c++ lib, supposedly
03:55 AM Haohmaru: and binutils and whatnot
03:55 AM polprog: yeah it does that
03:55 AM polprog: pretty nice
03:55 AM _ami_: meh, i am talking abt the name order.
03:55 AM polprog: Haohmaru: do you have a working makefile?
03:55 AM _ami_: arm-none-eabi-gcc arm-none-eabi-newlib vs gcc-arm-none-eabi
03:55 AM _ami_: ideally newlib should be in different pkg.
03:56 AM _ami_: which arch does it nicely.
03:56 AM Haohmaru: it is.. but it was auto-selected
03:56 AM Haohmaru: (i use synaptic)
03:57 AM _ami_: the compiler name is arm-none-eabi-gcc so ideally the pkg name should be arm-none-eabi-gcc.
03:57 AM _ami_: not like gcc-arm-none-eabi
03:57 AM Haohmaru: _ami_, tbh i find it better if gcc was the first thing in the name
03:57 AM polprog: agreed
03:58 AM polprog: so you just search for gcc
03:58 AM Haohmaru: it looks better when they're sorted by name
03:58 AM Haohmaru: cuz there are 894322398 kinds of gcc ;P~
03:58 AM polprog: also i the naming convention seems to include the program name first
03:58 AM _ami_: no gcc pic yet? :)
03:58 AM Haohmaru: pic sux
03:59 AM _ami_: indeed.
03:59 AM polprog: like fortune-mod or fortune-anarchism
03:59 AM Haohmaru: is it worth dealing with gigabytes worth of compiler for a platform that hass less than 4K ram ;P~
03:59 AM polprog: sdcc supports some pics afaik
03:59 AM Haohmaru: yes, the "bigger" ones
03:59 AM polprog: :)
04:00 AM Haohmaru: "BIGGER" <facepalm.jpg>
04:00 AM _ami_: have you guys subscribed to that microchip free PIC board?
04:00 AM polprog: damn i forgot
04:00 AM Haohmaru: no, thanks
04:00 AM _ami_: i wonder when they would ship it.
04:00 AM polprog: *whishpers* its free microcontroller
04:01 AM _ami_: Haohmaru, i can take any free ICs/board. :)
04:01 AM _ami_: big sale today at aliexpress.
04:01 AM polprog: itshappening.gif
04:01 AM _ami_: have to order bunch of ICs.
04:02 AM polprog: gotta go take a shower
04:02 AM polprog: cya later
04:03 AM _ami_: i had made a list:
04:03 AM _ami_: H11L1M, PC817B, 6N137 - Opto couplers
04:03 AM _ami_: MCP602, LM324, OPA2604A - op-amps
04:03 AM _ami_: LM338 - 5-8 AMP Linear Regulator
04:03 AM _ami_: SR540, 5A (Schottky diode)
04:03 AM _ami_: TLC555CP DIP
04:03 AM _ami_: Hall element - OH49E
04:03 AM _ami_: 0.1 ohms Cement R - 5W rated
04:03 AM _ami_: multi turn pots and knob cap
04:03 AM _ami_: some ceremic caps
04:03 AM _ami_: 8 pins IC socket DIP8
04:06 AM _ami_: are you guys buying stuffs from ali?
04:07 AM Emil: yeah
04:07 AM Emil: I just ordered a esp8266 programmer
04:12 AM Haohmaru: i think cmsis++ is a bit too "tied" to the micro-os for me to untangle
04:12 AM _ami_: Emil, programmer? usb-serial is good enough which i am sure u already have?
04:13 AM Emil: _ami_: bare module
04:13 AM Emil: one that I can just plug a module in
04:14 AM _ami_: ok
04:14 AM _ami_: i have so many esp12Es
04:14 AM _ami_: and nodemcu boards
04:16 AM _ami_: https://www.aliexpress.com/item/Adapter-for-Nodemcu-Lua-USB-32M-ESP8266-ESP-12E-F-CP2102-Internet-Wifi-Module-DC-Power/32837635356.html
04:16 AM Emil: polprog: what did you use to generate those flow graphs?
04:16 AM _ami_: https://www.aliexpress.com/item/Adapter-For-NodeMcu-Lua-ESP8266-ESP-12E-ESP-12F-CH340G-WIFI-Internet-Development-Board-PCB-Antenna/32837651233.html
04:17 AM _ami_: both turned out good:
04:17 AM _ami_: https://twitter.com/amitesh_singh/status/967345436305453056
04:17 AM _ami_: https://twitter.com/amitesh_singh/status/967358837064794112
04:24 AM _ami_: i got this case delivered today from banggood. https://www.banggood.com/Electronic-Plastic-Shell-Cartridge-Handle-Project-Case-Desk-Instrument-200x175x70mm-p-1035473.html
04:24 AM _ami_: impressed with quality packaging. https://pbs.twimg.com/media/DZaoiCAUQAAqnnk.jpg
04:27 AM _ami_: Emil, polprog H11L1M/6N137 are good enough for usb-serial?
04:28 AM _ami_: basically for serial isolation.
04:30 AM nohitz: youre a chelsea fan ? :D
04:30 AM nohitz: i was a chelsea fan back in the 90's
04:31 AM _ami_: yes. I watch every single chelsea match :)
04:31 AM _ami_: not a good season this year though.
04:31 AM polprog: Emil: libreoffice draw
04:31 AM nohitz: when gullit and vialli played there
04:31 AM nohitz: and others
04:31 AM _ami_: nohitz, oh, good to know. why did you leave ?
04:32 AM nohitz: i dont know, i lost interest for football for many years.
04:32 AM polprog: i need a grounded tin foil hat to discharge my hair after i wash it. ugh
04:33 AM nohitz: and i dont follow premier league anymore
04:34 AM * _ami_ follows polprog back
04:34 AM polprog: :)
04:36 AM _ami_: nohitz, :/
04:37 AM nohitz: national league is all that matters me nowdays
04:38 AM nohitz: +to
04:38 AM nohitz: and finnish national tema
04:38 AM nohitz: *team
04:38 AM Haohmaru: polprog, i try to avoid needing a makefile
04:39 AM Haohmaru: my issue currently is still figuring out what to do, i had hopes for this cmsis++ thing, but i tried it now and couldn't make sense of it
04:39 AM Haohmaru: brb
04:40 AM _ami_: nohitz, football national team?
04:40 AM nohitz: yes
04:40 AM _ami_: ok,
04:44 AM polprog: so youre using an ide?
05:15 AM Haohmaru: yes
06:59 AM Haohmaru: uh, so newlib seems to be (amongst other things) LGPL (newlib-nano is GPL in addition)
07:00 AM Haohmaru: but newlib does not actually come as a .lib, it comes as source
07:01 AM Haohmaru: so, to not violate the license, i should just compile each thing (including my program) into .o files, and supply those to the user?
07:01 AM Haohmaru: my nose tells me there won't be a neat little "newlib.o" but a pile of .o files instead
07:59 AM Jartza: Haohmaru: newlib is bloated, I've been using newlib-nano
08:02 AM Haohmaru: great, but it's GPL afaict
08:40 AM MrFahrenheit: polprog, 5 lines of bash? does it just call picocom?
08:41 AM polprog: lol
08:41 AM polprog: check it out, its at the end of the guide ;)
08:44 AM MrFahrenheit: neat
08:47 AM MrFahrenheit: also, what's this about free real estate, I mean a free microcontroller
08:56 AM rue_: Haohmaru, you can avoid needing a makefile
08:56 AM Haohmaru: i already did
08:56 AM rue_: just type all the commands to compile your project into the terminal manually
08:56 AM Haohmaru: eh? r u insane
08:56 AM rue_: or you can make a bash script
08:56 AM rue_: or you can write a program that executes the commands itself
08:57 AM Haohmaru: dude, my IDE has a Build button
08:57 AM rue_: you can even make it configurable
08:57 AM rue_: infact, if you want you can make it also deal with things like build dependencies
08:57 AM rue_: you would even call it make when your done
08:57 AM Haohmaru: my IDE deals with all of that
08:58 AM rue_: and who scavanged the code that they used in the library that they used in the ide to do that?
08:58 AM Haohmaru: uh, que? ;P`
08:59 AM rue_: the ide would use someones library
08:59 AM rue_: remember, nobody writes origional code anymore
08:59 AM Haohmaru: maybe YOU don't ;P~
08:59 AM rue_: the code in the library that does that, it monkey'd togethor from other peoples code
09:00 AM Haohmaru: what's your point?
09:00 AM rue_: just wondering whos system your using
09:00 AM Haohmaru: Code::Blocks's built-in "build system"
09:01 AM rue_: bit like an aduino library then
09:02 AM Haohmaru: in what way is it like an arduino library exactly?
09:02 AM rue_: I love it when you dig and find out that thru the layers of libraries, people translate back and forth a few times on the parameters to function calls to get something done
09:02 AM rue_: Haohmaru, you never quite know what your getting with an arduino library
09:03 AM rue_: its usually not good
09:03 AM Haohmaru: yeah man, when i give you this .hex you can probably see "aweful code::blocks did this" written all over it, right?
09:04 AM rue_: maybe :)
09:04 AM Haohmaru: a completely useless garbage .hex
09:04 AM Haohmaru: and what's written in your .hex?
09:04 AM rue_: its about how it does its task
09:05 AM Haohmaru: "i am leet h4x0r and use makefiles or terminal"
09:05 AM rue_: gcc adds a lot of junk iniitlization
09:05 AM Haohmaru: "i am more leet h4x0r cuz i wrote my own scripts"
09:06 AM rue_: its about needing a stupid amount of resoruces to do something simple
09:06 AM rue_: like a code editor needing to address more than 4G of ram
09:07 AM rue_: and therefore needing to be a 64 bit app
09:07 AM Haohmaru: >:/
09:07 AM Haohmaru: rue_, imma slap you
09:07 AM Haohmaru: C::B uses less than 200MB Ram
09:07 AM MrFahrenheit: nothing wrong with an ide or a makefile, chill you two
09:08 AM Haohmaru: my whole computer has 2GB ram
09:08 AM rue_: right, is it a 64 bit app?
09:08 AM MrFahrenheit: also, Haohmaru, get a new computer
09:08 AM Haohmaru: that depends on my OS, ya know
09:08 AM Haohmaru: so yes and no
09:08 AM Haohmaru: any other questions?
09:08 AM rue_: want to know why the world is gung-ho on 64 bits
09:09 AM rue_: I think its cuase bloatware needs it now
09:09 AM rue_: programs waste and leak so much memory they NEED 4g+
09:10 AM MrFahrenheit: I used to have 8gigs of ram back in the day to run 3 windows VMs, now you need that to run a few websites and "applications"
09:10 AM Haohmaru: there are valid reasons for a program to need more than 4G RAM
09:10 AM Haohmaru: but indeed many programs that eat a ton of RAM are plain wrong (IMO)
09:11 AM Haohmaru: but i blame gamers for that
09:11 AM rue_: firefox/chromium would happily pull more than 4G if they can
09:11 AM rue_: cause, a webpage like http://ruemohr.org/ NEEDS MORE THAN 4G OF RAM TO RENDER!
09:12 AM rue_: (after having leaked 3.9999G on the changing images of the previous pages
09:12 AM rue_: )
09:14 AM Haohmaru: rue_, sure, but why are you attacking my IDE specifically?
09:15 AM rue_: PROGRAMMING IN ANYTHING BUT ASSEMBLER IS AN ABOMINATION!
09:15 AM rue_: :)
09:15 AM Haohmaru: when it's one of the most resource-conservative given the features it has
09:15 AM rue_: tho, the portability of c is nice...
09:16 AM Haohmaru: MrFahrenheit, i have my IDE, firefox, pdfviewer, and a bunch of other stuff open, with 2GB of ram
09:17 AM rue_: total used free shared buffers cached
09:17 AM rue_: Mem: 8308028 2080552 6227476 0 681772 513344
09:17 AM rue_: Swap: 20980852 0 20980852
09:17 AM Haohmaru: 32bit windows or 64bit linux (the linux is more conservative)
09:17 AM Haohmaru: rue_, pls, use -h, i'm not a living calculator
09:18 AM rue_: 8G, using tiny bit over 2, 6 free
09:18 AM rue_: its never touched its swap
09:18 AM unclenorton: hello i need help with timer1 and TIFR on attiny85
09:18 AM rue_: unclenorton, ok, show us what you got
09:18 AM * Haohmaru gives rue_ an oscar prize
09:20 AM unclenorton: so, i'm starting timer1 and waiting until OCF1A is set in TIFR, but it skips the while loop which means that OCF1A is always set in TIFR https://pastebin.com/qqdFwrzz
09:20 AM unclenorton: also OCR1A and OCR1C are set before playsample is called
09:20 AM rue_: I have to go to work, but make sure the timer is in the right mode
09:20 AM unclenorton: it is
09:20 AM unclenorton: it is in CTC mode
09:21 AM unclenorton: i hope someone else can help me out here
09:22 AM rue_: in 9 hrs!
09:26 AM MrFahrenheit: unclenorton, you're setting OCR0A but using timer 1
09:26 AM unclenorton: MrFahrenheit, that is not for timer1, that is setting the pwm duty cycle
09:26 AM unclenorton: that is a different thing
09:27 AM unclenorton: OCR1A is set before calling playsample
09:29 AM MrFahrenheit: try also setting OCR1C to the same value
09:29 AM MrFahrenheit: I kinda remember there being a quirk with those on timer 1
09:30 AM unclenorton: i just tried that, in playsample() i set OCR1C and OCR1A to the value that they were supposed to be before anyway, but it still doesn't work
09:31 AM Ameisen: So... there does not appear to be a way, when using Visual C++ makefile builds, to pass the list of source files in the project file to the makefile directly.
09:31 AM Ameisen: :(
09:31 AM Ameisen: so you have to parse the vcxproj
09:35 AM MrFahrenheit: unclenorton, you're selecting /128 prescale?
09:36 AM unclenorton: MrFahrenheit, no, /8 right now, but it will sometimes be different
09:37 AM unclenorton: also, right now on avrfreaks i read that the avr needs at least 3 clock cycles to clear TOV1 in TIFR, i don't know about OCF1A tho
09:37 AM unclenorton: maybe i just need to wait a little bit longer after clearing it
09:39 AM unclenorton: or maybe not, just tried adding _delay_us(1) after clearing OCF1A, still doesn't work
09:42 AM MrFahrenheit: I think you should try setting the registers with constant values until it works, so you know what you're putting in there
09:44 AM unclenorton: hold up
09:45 AM unclenorton: MrFahrenheit, i tried running the code with the simulator in AS7 and when i clear OCF1A in TIFR it does not clear
09:45 AM unclenorton: no matter how long i wait
09:48 AM unclenorton: yep, looks like OCF1A can't be cleared in TIFR
09:48 AM unclenorton: hmm
09:49 AM MrFahrenheit: to get /8 prescaling with ctc on timer1 you need to set TCCR1 to 0x84, the CTC1 bit is set, and the CS values is 0b0100
09:50 AM MrFahrenheit: so replace your & ~7 line with just setting it to 0x84
09:50 AM unclenorton: MrFahrenheit, that does not matter right now
09:50 AM unclenorton: i got it to work
09:50 AM unclenorton: after i cleared OCF1A i had to do cli() and then after a few clock cycles OCF1A got cleared
09:50 AM MrFahrenheit: you clear it by writing one to it
09:51 AM MrFahrenheit: if the simulator doesn't do that, it's bugged
09:51 AM unclenorton: well it's working now
09:51 AM MrFahrenheit: neat
09:52 AM unclenorton: actually i don't have to disable interrupts after it, i just need to have interrupts disabled kk
10:46 AM polprog: lol wut
10:46 AM polprog: i have 8 gigs of ram and the only thing eating it on my laptop is pulseaudio that likes to take 700 megs
10:47 AM polprog: i dont reboot it and i barely hit 2G total
10:53 AM MrFahrenheit: doesn't do that for me
10:54 AM MrFahrenheit: mostly firefox for me
10:58 AM MrFahrenheit: I signed in to get that pic board, can't resist free shit
11:00 AM polprog: MrFahrenheit: can you post the link?
11:00 AM nohitzzz: me too
11:00 AM polprog: at worst i will just get hardcopies of spam
11:01 AM MrFahrenheit: www.microchip.com/184freeboard
11:06 AM polprog: aight
11:06 AM polprog: free stuffz
11:07 AM MrFahrenheit: this is how I got to use mathematica back in ~2006
11:07 AM MrFahrenheit: they had a free cd offer and I immediately ordered it
11:07 AM MrFahrenheit: been using it ever since
11:08 AM MrFahrenheit: also, ubuntu, but I don't use ubuntu
11:14 AM polprog: nice
11:27 AM nohitzzz: i have never even tried pics, so this is nice
11:29 AM MrFahrenheit: I have, in school once
11:29 AM nohitzzz: one of our teachers was a pic guy, but he was forced to use avrs since that's what our school used
11:29 AM MrFahrenheit: they told us download a demo of some compiler from a dodgy site, since it was apparently better than the one that came with mplab
11:30 AM MrFahrenheit: and that's pretty much how I see the whole pic ecosystem
11:31 AM MrFahrenheit: I think microchip now uses gcc, but refuses to opensource parts of it
11:34 AM antto: xc8
11:42 AM antto: polprog make a lil C program that allocates a 6GB buffer and you'll know how i feel ;P~
11:42 AM antto: the webbrowser is the biggest memory swine i have to deal with
11:42 AM antto: there are a few other apps i have which are swines too, but i've found ways to avoid using them
11:42 AM antto: MPLABX is one of them btw
11:42 AM nohitzzz: android studio is the biggest swine
11:42 AM antto: luckily, i don't even have a smart(a$$)phone
11:43 AM nohitzzz: when i run it on my work pc, everything starts to lag. so if our boss thinks that im gonna test our app on every android version with an emulator, he has to buy me a new pc.
11:44 AM antto: a supercomput0r
11:45 AM antto: i'm getting nowhere with arm btw
11:45 AM MrFahrenheit: nohitzzz, ever use the old android eclipse sdk?
11:45 AM * antto considers blaming nohitzzz
11:45 AM nohitzzz: that's becouse you bounce all around, and dont listen to me
11:45 AM nohitzzz: MrFahrenheit nope
11:46 AM MrFahrenheit: android studio is perfect in comparison
11:46 AM MrFahrenheit: well, IDEA, never used android studio itself
12:41 PM polprog: how come VIVA didint get a proper audio mix for their broadcast o_o https://www.youtube.com/watch?v=kZQFopVfdk8
12:41 PM polprog: if i was the sound engineer there i wouldnt air something like this at all >:(
12:45 PM Casper: polprog: maybe because someone higher up said: destroy the quality on the internet portion so people pay premium to watch us?
12:46 PM antto: polprog 1994..
12:46 PM antto: you would've watched this on a silly TV with probably a mono speaker
12:47 PM polprog: yeah but still..
12:48 PM Emil: mfw when the laser cuttee borks and doesnt want to resume
12:49 PM Emil: mfw when 45 minutes wasted
12:49 PM Emil: mfw its 2048 and I thw guarda could come and try to kick me out at any point
12:49 PM Emil: mfw I need to have this done today
12:50 PM nohitzzz: that's probably recorded on a vhs tape
12:50 PM Emil: the moment a guard comes its bullshit mode activate
12:51 PM nohitzzz: and the audio isnt that bad imo
12:52 PM polprog: it is VHS but is mostly about the room reverb
12:52 PM polprog: thats a signal from a mike standing somewhere there, ideally they would get a signal from the actual sound system guys
12:52 PM polprog: the FOH mix
12:58 PM MrFahrenheit: oh man, viva, that's a station I haven't seen in a long time
12:58 PM MrFahrenheit: a long long time
12:59 PM polprog: heh. i dont think it even exists
12:59 PM polprog: now ive got an idea
12:59 PM MrFahrenheit: I just remembered all those ringtone ads, and now I'm not even sad if it's defunct
12:59 PM polprog: i should make a tiny hardware sound mixer to learn some basics of analog circuitry
01:00 PM antto: it's just two resistors together, boom mixer
01:00 PM MrFahrenheit: ^
01:00 PM antto: make something better now
01:00 PM polprog: no something more advanced
01:00 PM antto: more advanced?
01:00 PM antto: get a computer - boom, digital mixing
01:00 PM MrFahrenheit: like two pots, you know
01:01 PM MrFahrenheit: polprog, make a condenser microphone impedance matching circuit
01:01 PM polprog: like 2 tracks with faders, and mute buttons. and of course a leve meter
01:01 PM antto: i misread that as "a love meter" O_o
01:02 PM antto: my brain skipped a clock cycle
01:02 PM polprog: a small box so i could mix two signals for my speaker set
01:02 PM polprog: one from the computer and one from whatever else. i wont use a switch because i wanna avoid a pluck
01:02 PM MrFahrenheit: funny thing about those circuits, the audio people claim you need to use a 1 gigaohm resistor near the condenser
01:02 PM antto: polprog make a love meter, THAT would be useful ;P~
01:02 PM MrFahrenheit: I can't imagine that has any effect
01:03 PM polprog: something like a voltage controlled amplifier would be the thing
01:03 PM polprog: and then i could use a simple RC circuit with a switch to provide the seamless mute/unmute option
01:05 PM polprog: maybe a pair of fets in the feedback loop in a way that ON would make a 0dB amplifier and off like -120dB
01:05 PM polprog: let me think
01:11 PM MrFahrenheit: have you thought about it
01:12 PM MrFahrenheit: polprog, I know what you can make
01:16 PM polprog: got it
01:16 PM polprog: i got the pluck-less mute circuit!
01:17 PM polprog: http://tinyurl.com/ycoo3nu3
01:17 PM MrFahrenheit: no, you need to make a usb pulseaudio volume controller
01:17 PM MrFahrenheit: multichannel rotary knobs, first channel is master, the rest are applications
01:18 PM polprog: no
01:18 PM MrFahrenheit: with a display to tell you which knob is what
01:18 PM MrFahrenheit: like this, but physical https://camo.githubusercontent.com/bf0a256e15f0139b1cd5ed0b3d931b5054c8c97c/687474703a2f2f692e696d6775722e636f6d2f647261487130432e706e67
01:18 PM polprog: usb lag + pulseaudio lag
01:18 PM MrFahrenheit: it's just a volume controller
01:18 PM MrFahrenheit: you won't be adjusting it 10k times per second
01:18 PM MrFahrenheit: just when an application is too loud
01:19 PM polprog: turn the knob, go make tea, come back, hear the music get quieter :D
01:19 PM polprog: maybe
01:20 PM polprog: my first programming language was Java
01:20 PM polprog: i wanna go deeper in hardware
01:20 PM polprog: i have no idea about analog stuff and i wanna learn it
01:20 PM polprog: making a digital controller doesnt help ;)
01:21 PM MrFahrenheit: my first was C++
01:22 PM MrFahrenheit: also, first step in learning analog: test my usbtmc library and make a bode plotter
01:22 PM MrFahrenheit: a nice low pass filter
01:26 PM polprog: i think i will build this
01:26 PM polprog: improved version
01:26 PM polprog: http://tinyurl.com/ybszpung
01:27 PM MrFahrenheit: a peak detector?
01:27 PM polprog: run the sim
01:28 PM MrFahrenheit: I did, looks like a peak detector
01:28 PM polprog: when you switch the button it will gradually increase the amlification from -inf (lets say) to zero
01:29 PM polprog: whereas if you put a button between input and output just like that you would get plucks
01:47 PM polprog: damn i have no pmosfets
02:25 PM LeoNerd: I'm currently working on a "nicer" AVR programmer - it supplies target power in 3.3 or 5V, monitors current, has levelshifter, has secondary UART for general comms use as well. Handy little desktop case. I wonder, if I made more of them, would they sell?
02:25 PM LeoNerd: Do folks buy that sort of thing?
02:31 PM nohitzzz: if its cheap enough
02:33 PM LeoNerd: Mmm.. well, hand-made in one-off quantities currently.. so things like case drilling is taking lots of time
02:40 PM Ameisen: My first true programming language was also C++
02:40 PM Ameisen: I learned Java, C#, et al later. Still prefer C++
02:41 PM Ameisen: still need to work on my build tool later
02:41 PM Ameisen: I think I need to write a new vcxproj parser to get file lists
02:41 PM Ameisen: blech
03:20 PM nohitzzz: i ordered second pic
03:20 PM nohitzzz: with different email and address
03:20 PM LeoNerd: A PIC? *gasp*
03:20 PM nohitzzz: well its free
03:22 PM MrFahrenheit: even vinegar is sweet if it's free
03:41 PM Ameisen: I'm trying to switch over to ARM entirely :|
03:42 PM Ameisen: I just don't have any reason to use Atmel or PIC
03:42 PM Ameisen: I kinda want to get one of the Cortex Ms that has memory bus pins, and give it 4 GiB of DRAM
04:29 PM polprog: honestly avr and pic compared to arms, most likely suck in general applications. but i hope they will send me that pic board just because im curious about CPU design
04:29 PM polprog: or computers in general
05:07 PM Emil: Nice
05:07 PM Emil: managed to actually get everything done
05:07 PM Emil: also what PIC board?
05:13 PM nohitzzz: http://page.microchip.com/184freeboard.html
05:14 PM rue_: 16F?!? screw that
05:16 PM rue_: PICS are NOT worth the free samples
05:16 PM Emil: :D
05:16 PM rue_: even when they start ripping off arduino designs
05:17 PM Emil: lulz
05:17 PM rue_: I ran into that before,
05:17 PM rue_: free pics or pay for avrs, I'd rather pay for the avrs
05:18 PM Tom_L: surely not
05:19 PM MrFahrenheit: it's just more parts to hoard, gotta have it
05:22 PM rue_: it would be in the realm of consideration if they had a gcc like compiler for it, and a program like avrdude, and it didn't have paged memory, and it didn't divide the clock rate by 4
05:22 PM MrFahrenheit: it has gcc, they just figured out a way to keep the source for themselves
05:23 PM MrFahrenheit: not sure how
05:23 PM rue_: yea, by gcc like, I also meant free
05:23 PM rue_: and proper C, not the garbage they were selling back in 2002
05:25 PM Tom_L: rue do you have a part tumbler?
05:26 PM Emil: wotds daa
05:26 PM Emil: dat
05:27 PM MrFahrenheit: is it like a rock tumbler?
05:27 PM Tom_L: somewhat
05:27 PM Tom_L: https://www.ebay.com/p/5-Lb-Vibratory-Bowl-Jewelry-Coin-Metal-Case-Tumbler-Polisher/2077295489?iid=331741482927
05:28 PM Emil: oooh hehe
05:28 PM Emil: I thought for electronicsparts
05:28 PM Emil: and was wtf :D
05:30 PM MrFahrenheit: I've seen people make those with a jar, a motor and some sand or walnut shells or something
05:30 PM polprog: [00:21] <rue_> and proper C, not the garbage they were selling back in 2002 you dont't like having to declare your variables at the beginning of a function? it makes it so clear ! /s
05:31 PM MrFahrenheit: that's proper c though :P
05:31 PM MrFahrenheit: before the newer standards
05:31 PM Emil: it's good style actually
05:31 PM Emil: It's very clear
05:32 PM MrFahrenheit: I hate it
05:32 PM polprog: me too
05:32 PM Emil: lolwat
05:32 PM polprog: especially in loop counters
05:32 PM MrFahrenheit: mhm
05:33 PM polprog: ideally a loop counter like i should have its scope inside the loop
05:33 PM polprog: not in the whole function :(
05:35 PM Emil: that's a valid point
05:35 PM Emil: but it's the only case
05:36 PM polprog: also when people dont use stdint types on microcontrollers
05:36 PM polprog: what size is int on avr?
05:36 PM Emil: 16
05:36 PM polprog: phew.
05:36 PM polprog: could be worse
05:36 PM Emil: or 8 if you -mint it
05:36 PM Emil: but that's cancer
05:37 PM polprog: 32 bit loop counter on an 8 bit cpu :D rip
05:39 PM polprog: im reading a pic on linux programming art
05:39 PM polprog: "Note that pin 4 of the PIC12F675 is only an input and will not light an LED. " Im curious what is the story behind that pin
05:40 PM polprog: also "an LED" :(
05:40 PM Emil: polprog: EL II DII
05:41 PM polprog: stop, you are giving me Pee Tee Es Dee
05:42 PM Emil: it starts with a vowel so traditionally an led
05:43 PM Emil: an LED*
05:43 PM Emil: and a led
05:47 PM * Casper vote for DEL instead of LED !
05:47 PM Casper: problem solved
05:47 PM Casper: Diode Électro-Luminescente!
05:50 PM polprog: in polish the unabbreviated term is techically "glowing diode"
05:51 PM polprog: :P
07:00 PM rue_: never hear of quatrodes
07:01 PM rue_: diodes, triodes, no quatrodes
07:01 PM rue_: and what about monodes
07:01 PM rue_: geez
07:04 PM Casper: and pentrodes?
08:31 PM _ami_: https://www.crowdsupply.com/tinyfpga/tinyfpga-bx
08:34 PM _ami_: http://tinyfpga.com/b-series-guide.html
08:35 PM _ami_: this is tempting :)
11:57 PM day__ is now known as day