#avr Logs

Apr 09 2017

#avr Calendar

12:26 AM Casper: rue_house / rue_shop3: do you know what is the price difference between aluminium rod and steel rod?
12:28 AM rue_shop3: prolly about 3:1
12:29 AM Casper: ok
12:29 AM Casper: maybe I should just order the antenna online...
12:33 AM daey_ is now known as daey
09:13 AM enhering: Morning, Casper!
09:13 AM enhering: Morning everybody!
09:14 AM Lambda_Aurigae: casper isn't part of everybody?
09:14 AM enhering: Indeed. Never thought about that before.
09:14 AM enhering: Maybe he is.
09:15 AM enhering: Dunno. Have to think about it.
09:16 AM enhering: Morning, Lambda_Aurigae .
09:16 AM Lambda_Aurigae: it is that.
09:16 AM enhering: My scope arrived yesterday. Now I see dead signals!
09:16 AM Lambda_Aurigae: nice.
09:16 AM Lambda_Aurigae: don't have a scope.
09:17 AM enhering: Never wanted one?
09:17 AM Lambda_Aurigae: do have several homemade logic shrimp thingies in various stages of completion.
09:17 AM Lambda_Aurigae: used to have one
09:17 AM Lambda_Aurigae: in high school.
09:17 AM enhering: If you save a penny every day, in your lifetime you will have saved many pennies.
09:18 AM Lambda_Aurigae: and $3.65 toward a schope.
09:18 AM enhering: That sounds so weird.
09:18 AM Lambda_Aurigae: each year
09:18 AM enhering: If you live 100 years, you can buy a Hantek!
09:19 AM enhering: If you live 100 years, you can buy a Hantek!just with your pennies!
09:19 AM enhering: :)
09:20 AM enhering: That is funny.
09:21 AM enhering: Never thought about buying a Hantek with my saved pennies.
09:21 AM Lambda_Aurigae: I buy stuff all the time with saved change.
09:21 AM Lambda_Aurigae: I only spend bills, never coins
09:21 AM Lambda_Aurigae: coins go in a jar.
09:21 AM Lambda_Aurigae: once every 3 or 4 months the jars go to the bank.
09:22 AM Lambda_Aurigae: that money is toy money.
09:22 AM Lambda_Aurigae: I pull out about 200 to 300 dollars a year that way.
09:22 AM enhering: Good practice. Put your pennies in a jar.
09:22 AM Lambda_Aurigae: pennies, nickels, dimes, quarters
09:23 AM enhering: I'll do that. Thanks for the idea
09:25 AM Lambda_Aurigae: I have a separate savings account where that money goes.
09:25 AM Lambda_Aurigae: wifey has one of her own.
09:26 AM Emil: Lambda_Aurigae: wait
09:26 AM Emil: you dont have a scope
09:26 AM Lambda_Aurigae: nope.
09:26 AM polprog: wow
09:26 AM Lambda_Aurigae: just some logic analyzers.
09:26 AM Emil: wtf :D
09:27 AM polprog: even some old CRT one?
09:27 AM Lambda_Aurigae: nope.
09:27 AM Emil: but but but
09:27 AM Lambda_Aurigae: closest I have is audio input on a laptop with scope-like probes
09:27 AM polprog: lol
09:27 AM Lambda_Aurigae: never needed one really.
09:27 AM Emil: The investment even to the poorest of scopes is well worth it
09:27 AM Lambda_Aurigae: have used them, have had one in the past.
09:28 AM enhering: I have invested, some months ago in a self learning machine, with many axis of freedom. Now she is taking all my savings and free time.
09:28 AM Lambda_Aurigae: just seldom do anything that needs one and I can usually work my way around it with a logic analyzer.
09:28 AM Emil: But that's :D
09:28 AM Lambda_Aurigae: odd.
09:28 AM Lambda_Aurigae: strange
09:28 AM Lambda_Aurigae: bad
09:28 AM Lambda_Aurigae: not good
09:28 AM Lambda_Aurigae: me
09:28 AM enhering: Lambda_Aurigae: you are amazing. I wish I knew so much electronics.
09:29 AM Lambda_Aurigae: I wish I did too.
09:29 AM enhering: You definitely know much more than I do.
09:29 AM Lambda_Aurigae: what I know is how to figure things out.
09:29 AM Emil: no it's like "if you have a hammer everything looks like a nail" situation
09:29 AM Lambda_Aurigae: something I was taught as a kid and have worked hard at for decades.
09:29 AM enhering: Nice, Emil
09:30 AM Emil: enhering: hm?
09:30 AM enhering: the phrase
09:30 AM enhering: never heard that
09:30 AM Lambda_Aurigae: I'm pretty much entirely self taught on electronics and computers.
09:30 AM Emil: oh you've nevrer heard it before
09:30 AM Lambda_Aurigae: enhering, that's an ooooold saying.
09:30 AM Emil: enhering: is your mother tongue what?
09:30 AM enhering: You have a good background, Lambda_Aurigae. Doing what you did make people find their way
09:31 AM enhering: Brazilian portuguese, Emil
09:31 AM Emil: hmm, might explain it
09:31 AM enhering: Then english, after french and in the end, suffering a lot, some numbers in german
09:32 AM enhering: Back to the scope, I bought a Tek for a very good price here. It is still at the same price, 300 USD below amazon, if you are interested.
09:33 AM Lambda_Aurigae: I used to know how to cuss in german and russian but have forgotten all that over the intervening 30 years.
09:33 AM enhering: I wish I knew russian. I bought some nice books in France, called Lire et écrire in (different languages)
09:34 AM enhering: There is one about reading russian glyphs. It says nothing about understanding what you read.
09:35 AM Lambda_Aurigae: I can read just about anything in the roman alphabet....problem is, as you said, understanding what I read.
09:35 AM enhering: Just a small detail.
09:35 AM enhering: Nothing really serious
09:36 AM Lambda_Aurigae: native english speaker here...my grandmother was an english teacher and she would have kittens over my use of capitalization and punctuation on here if she were reading this.
09:36 AM Lambda_Aurigae: and two years of french in high school.
09:37 AM Lambda_Aurigae: of which, I pretty much remember maybe 10%
09:56 AM polprog: overall making pcbs at home looked way harder than it is
09:57 AM polprog: i got some coper clad pcbs at the market today
09:57 AM Lambda_Aurigae: been doing it since I was in 6th grade...about age 12.
09:58 AM polprog: since when you were doing electronics?
09:58 AM Lambda_Aurigae: back when the only source of materials was radio shack.
09:58 AM Lambda_Aurigae: I started in electronics at age 8
09:58 AM Lambda_Aurigae: father threw a radio in the trash that he couldn't fix
09:58 AM Lambda_Aurigae: I pulled it out and fixed it
09:58 AM Lambda_Aurigae: and pissed him off.
09:58 AM polprog: heh, why did he get mad?
09:59 AM Lambda_Aurigae: because an 8 year old kid could fix in 10 minutes what he spent 2 hours on and couldn't fix.
10:00 AM polprog: i also got a bunch of theratronix pushbuttons, illuminated. and a 6-digit encoder card
11:09 AM rue_bed: encoder?
11:09 AM rue_bed: dro?
11:19 AM polprog: rue_bed: yeah, thumbwheel switches
11:50 AM rue_bed: ah
11:51 AM rue_bed: sometimes you can get 16 digit ones from the address selectors on old scsi drives
11:51 AM rue_bed: I think I have a few 10's around
11:54 AM polprog: 16 digit would be cool! theese are 1 of 10 switches, made by cherry. i think i also have a couple 10 position ones but those do binary encoding
12:35 PM JanC is now known as Guest47474
12:35 PM JanC_ is now known as JanC
02:54 PM _ami_: [STM32]: Setting STM32F1XX development environment on Arch Linux - Part 1 http://amitesh-singh.github.io/stm32/2017/04/09/setting-stm32-dev-environment-arch-linux.html
03:47 PM Emil: _ami_: holy shit those functions and defines look retarded
03:57 PM NoHitWonder: you're saying libopencm3 sucks?
03:58 PM Emil: NoHitWonder: if that is libopenmc3 specific, then based on that example, yeah, looks retarded
04:03 PM NoHitWonder: why so?
04:03 PM NoHitWonder: just a bunch of function calls
04:04 PM NoHitWonder: what's retarted about it?
04:05 PM NoHitWonder: you would want to do everything by setting bits in registers?
04:06 PM NoHitWonder: that was my first though when i moved to ARMs
04:07 PM NoHitWonder: but it's not practical
04:11 PM NoHitWonder: but i learned how to set io pins and clock settings with registers before i even touched a library
04:12 PM NoHitWonder: its good to understand what you're actually doing when you're using a library
04:13 PM Lambda_Aurigae: tell that to ardweeniers who use digitalwrite()
04:15 PM Emil: NoHitWonder: >those function names
04:15 PM Emil: >those define names
04:15 PM Emil: wtd
04:16 PM NoHitWonder: those could be functions names from our codebase
04:16 PM NoHitWonder: normal stuff
04:17 PM Emil: Then I'm afraid to tell you this but your codebase suffers from retardness and should be euthanized as soon as possible
04:17 PM Emil: It is the humane option
04:20 PM NoHitWonder: or you need more experience...
04:20 PM Emil: I know it is hars when you are attached to something but letting go is the first step to healinh
04:21 PM Lambda_Aurigae: bad libraries are like a parasitic worm.
04:22 PM Emil: Yeah
04:22 PM Emil: Most learn to live with them, some even say they are good
04:23 PM Emil: But those people are also retarded, kinda like those who want to put js/lua/python into microcontrollers
04:24 PM Lambda_Aurigae: should we port php and perl to attiny85?
04:25 PM polprog: nah, we need to put C# or java
04:25 PM polprog: IIRC, there is a java lib for raspi's GPIO
04:25 PM specing: Emil: Ada nao
04:27 PM polprog: i absolutely love the register way of doing stuff
04:27 PM polprog: you want to send a byte by paralell? PORTX=0xFF
04:28 PM polprog: that simple; or ldi whatever, whatever
04:28 PM polprog: not a loop of digitalWrite(); :D
04:28 PM polprog: as ive seen somewhere
04:28 PM Lambda_Aurigae: there's a loop in there?
04:29 PM polprog: surely some CS genius did that
04:29 PM Lambda_Aurigae: https://pastebin.com/dSRSxgax
04:29 PM polprog: you cant blame them for having a shit HAL; you have to blame them for hoosing the wrong platform
04:30 PM polprog: Lambda_Aurigae: that link, omfg
04:30 PM Emil: polprog: you can absolutely blame the shit hal, also
04:30 PM polprog: :')
04:30 PM Emil: polprog: there is nothing preventing you from designing a good hal
04:30 PM polprog: that's why i love this channel
04:30 PM Lambda_Aurigae: polprog, that's been around for a while.
04:31 PM Emil: Lambda_Aurigae: wtf niga you rehosting my things? :D
04:31 PM Lambda_Aurigae: "Will it be expensive?" "Only if we do it proper."
04:31 PM polprog: now children, let's mate Arduinos and cloud. Imagine a world where the "shield" has more flops than the motherboard itself
04:32 PM Lambda_Aurigae: Emil, not hosting or rehosting...just reposting a link in my bookmarks from years ago.
04:32 PM Emil: specing: >ADA pls no
04:32 PM Emil: Lambda_Aurigae: allrighty
04:32 PM polprog: the older languages might have made sense
04:32 PM Emil: polprog: heh
04:32 PM polprog: JS absolutely not
04:32 PM Lambda_Aurigae: surprised pastybin still has it on there.
04:32 PM polprog: gtg o/
04:32 PM Emil: cya
04:33 PM specing: Emil: YES Ada
04:33 PM specing: Emil: you should embrace the greatness of Ada
04:33 PM specing: it is the highest level language availalbe for AVR
04:33 PM Emil: So it has a fuckton of ovehead?
04:33 PM specing: and it is has features that make it lower than C
04:33 PM specing: it covers the whole range
04:33 PM specing: no
04:33 PM Emil: It requires you to also read its api
04:34 PM Emil: instead of relying on existing conventions
04:34 PM Emil: specing: hmm, tell me about those low level features
04:34 PM Emil: That does sound interesting
04:34 PM Emil: but this also sounds like a trap
04:35 PM Emil: inb4 I'm converted into an ada lunatic
04:35 PM specing: Good!
04:37 PM Emil: Well, better start singing about those low level features
04:45 PM polprog: good job dell on making this one look like a 9 cell batt
04:45 PM polprog: http://m.imgur.com/SfGf4t3
04:46 PM polprog: fortunately the cells seem to be alive
04:47 PM polprog: :)
04:52 PM julius_: hi
04:53 PM polprog: hello
04:57 PM Emil: hi
04:58 PM Emil: polprog: do the mosfets get warm at all?
04:58 PM Lambda_Aurigae: time for liquid nitrogen cooling system!
04:58 PM polprog: when? never noticed, even the 2 amp fan.
04:59 PM polprog: but on the other hand never ran longer that 20 sec
04:59 PM polprog: because the big fan makes doors shut :D
04:59 PM Emil: No, the question was
04:59 PM Emil: "Do the mosfets get warm at all?"
04:59 PM Emil: so I take that as ayes
04:59 PM Emil: which is good to hear
05:00 PM polprog: yes, its all cool
05:00 PM polprog: thanks for the help
05:01 PM polprog: i think i will have to design some tiny4313 board, i bought some for fun
05:02 PM Emil: nice
05:03 PM polprog: most of the copper clad i have is one or two sided strip, around 4x40cm
05:03 PM polprog: so i need to fit something there
05:10 PM specing: polprog: can I suggest a project?
05:11 PM Emil: specing: you are on everyone's ignore list until you explain the low level features you were talking about
05:11 PM Emil: bamboozling is a serious offence
05:12 PM specing: wait 20 mins, I have 2 deadlines to mis
05:12 PM specing: s
05:13 PM polprog: specing: sure, go ahead
05:13 PM specing: polprog: li-ion battery PCM
05:13 PM polprog: pcm?
05:14 PM specing: like a BMS but without balancing
05:14 PM polprog: eerm... bms?
05:14 PM specing: protection circuit module
05:14 PM specing: battery management system
05:15 PM Emil: speciiiing
05:15 PM specing: fuuuuuuuuuuuuuuuuuuuuuuuck
05:15 PM Emil: no ircin until after those deadlines are missed
05:15 PM Emil: or id you give up now it's okay >:)
05:16 PM polprog: ah! now i get it :D
05:21 PM polprog: anybody here has experience with CCTV cameras?
05:21 PM antto: i've been seen by some, does that count?
05:21 PM polprog: can i just hook the video out to a composite monitor?
05:21 PM Lambda_Aurigae: I got caught on a few over the years.
05:21 PM Lambda_Aurigae: depends on the camera
05:21 PM Lambda_Aurigae: if it is composite out, then, yes.
05:22 PM polprog: it oitpus a very characteristical analog video signal
05:22 PM polprog: 1v vpp
05:23 PM antto: plug it in, what could possibly go wrong
05:23 PM antto: just have a fire extinguisher near by
05:24 PM Lambda_Aurigae: worst case, you have to go buy some magic blue smoke to put back in.
05:27 PM Casper: have you bought the magic blue smoke collector and the magic smoke injector? Don't buy the red one! it have to be the blue one! Beware, there is also some marine blue one, those are counterfeit one!
05:32 PM polprog: antto: i did plug it in
05:32 PM polprog: magic smoke from one diode on the board, the power led doesnt light up
05:33 PM antto: dear friends, we're gathered here today..
05:33 PM polprog: it was 2 bucks and the guy had a whole cart if them, so ill buy 2 next week
05:33 PM polprog: or maybe ill fix that one, i dunno
05:33 PM Lambda_Aurigae: to join this transistor and this resistor in unholy matrimony!
05:34 PM polprog: you see the deal is, theres a 4 pin connector on the back, and theres a switch that determines its job
05:34 PM antto: ..to say goodby to a cctv camera
05:34 PM polprog: it was set to lens motor sig alling insteas of power! aargh! shit design
05:34 PM polprog: signalling*
05:35 PM antto: it had a great life, full of memorable moments, untill it was murdered
05:35 PM antto: life ends so unfair
05:35 PM polprog: dont worry, its just a single diode
05:36 PM polprog: ill fix that, or power it directly
05:36 PM polprog: ;)
05:36 PM antto: what? you'll replace some organs and frankenstein it back to life?
05:36 PM antto: it will never be the same camera again!
05:36 PM antto: you'll create a monster
05:36 PM polprog: dum dum dum
05:37 PM Lambda_Aurigae: frankencamera!
05:37 PM polprog: hell, if i get two, i can make 3d video!
05:37 PM antto: you'll need a way to view it then
05:38 PM polprog: ill probably put it on the waterdrone pole
05:38 PM polprog: just cross your eyes
05:38 PM antto: yes, that works.. but not for everybody
05:38 PM polprog: its gonna look like Curiosity ^_^
05:39 PM polprog: maybe ill post pictures tomorrow
05:39 PM polprog: maybe well be able to fix that
06:08 PM specing: Ok
06:08 PM specing: deadlines have been missed
06:08 PM specing: now I can focus on the important stuff
06:09 PM specing: polprog: http://www.batteryjunction.com/pcb.html
06:10 PM specing: theory: voltmeter on each cell and a mosfet on the end to shut off the energy drain
06:11 PM specing: Right now I'd like a 5S PCM
06:11 PM specing: meaning it would have to measure 5 voltages and turn off the mosfet if any of them drops below say 3V
06:21 PM specing: https://bmsbattery.com/66-bmspcm?p=2
06:38 PM specing: https://endless-sphere.com/forums/viewtopic.php?f=14&t=83448&p=1222800&hilit=DIY+BMS#p1222800
10:17 PM rue_house: active balancer
10:21 PM rue_house: forces all the cells to stay the same voltage
10:21 PM rue_house: if a cell drops, all the other cells put something into it
10:59 PM daey_ is now known as daey
11:48 PM daey_ is now known as daey