#avr Logs

Sep 04 2017

#avr Calendar

12:13 AM polprog: inlove the nature in poland here, imagine grassy pine forests with a lot of wild animals, and meadows. thats how it looks like close where we have our summer house
12:16 AM hcifi: I'm going to use an Atmega328p-pu with a relay so that I can control on/off cycles, would I need a crystal oscillator or can I use the internal one?
12:22 AM _ami_: hcifi, for doing gpio on/off, internal oscillator is fine.
12:22 AM hcifi: it would be done using the delay function, does that make a difference?
12:23 AM _ami_: hcifi, internal oscillators are not super accurate but for your case its fine.
12:23 AM _ami_: hcifi, calling _delay_ms() function?
12:24 AM hcifi: delay()
12:24 AM _ami_: meh! are u using arduino delay()?
12:24 AM _ami_: did you compile your arduino sketch for F_CPU clock 8Mhz?
12:25 AM hcifi: I tested it on my arduino, but I was planning on buying some for standalone use
12:25 AM _ami_: aha, got it.
12:25 AM _ami_: hcifi, arduino board has m328p and it runs at 16Mhz (using external Xtal)
12:25 AM _ami_: the bare atmega328p internal clock runs at 8Mhz
12:25 AM hcifi: bootloaded with arduino uno bootloader
12:26 AM hcifi: right
12:26 AM _ami_: so your delay() function won't run well on bare atmega328p until you use 16Mhz Xtalk and correct the fuse settings for m328p to use ext. clock.
12:26 AM _ami_: Xtal*
12:27 AM hcifi: oh I see, so it's calibrated according to a 16Mhz clock?
12:27 AM _ami_: yes, indeed.
12:28 AM _ami_: The arduino ide compiles arduino program code for 16Mhz clock.
12:29 AM hcifi: ok thank you for letting me know, in that case I might as well spend the extra $10 for some crystal oscillators and some capacitors, I think that's all I need for the 16Mhz clock right?
12:29 AM _ami_: yes 2 22pf caps and a crystal 16Mhz Xtal.
12:30 AM hcifi: that seems to be what most people use for the 328p
12:31 AM day__ is now known as daey
12:31 AM hcifi: can you tell me what a DIP IC socket is used for?
12:32 AM hcifi: is that so that you don't have to solder the actual microcontroller
12:33 AM _ami_: yes
12:33 AM _ami_: you can use that if you plan to reuse m328p later.
12:34 AM hcifi: I see, and the same goes for breakaways?
12:35 AM _ami_: what is breakaways?
12:35 AM _ami_: is it an enlgigh word?
12:35 AM _ami_: english*
12:37 AM hcifi: oh I think I looked at the wrong name, it's a header connector not a breakaway, breakaway was just the term used to describe how you can use them
12:37 AM _ami_: well, you need header pins based on your usecase.
12:38 AM _ami_: if you are making a product based on arduino and you want to have your custom board then you can design your board and do the wirings.
12:39 AM hcifi: I see what you mean, like sockets, you would only use them if you don't want to solder the parts
12:39 AM _ami_: i would not have header pins if i am making a product for market. i would make sure to place all the components on the PCB itself.
12:39 AM _ami_: header pins are generally used on development board not on real product.
12:40 AM hcifi: how are connection typically made on a pcb? I've only used breadboards and pcb's seem to have only individual "pins"
12:40 AM _ami_: hcifi, you would require kicad or other PCB design tools for that.
12:40 AM hcifi: but if I bought a blank pcb would I solder wire underneath to connect the components
12:41 AM _ami_: and then you need to find a PCB manufacturer and send your PCB design documents (which is gerber files) to them and they manufacture your PCBs and send to you.
12:43 AM _ami_: hcifi, you can ask pcb manaufacturer to assemble components on your pcb but it requires additional cost.
12:43 AM _ami_: you could solder your PCBs by youself too but for mass production, you would prefer it to outsource
12:45 AM hcifi: it would only be two, I just looked up some videos, and it seems that they do typically solder the components underneath, but I noticed that the solder isn't isolated, it seems to be touching the ones next to it, why doesn't that affect the connections?
12:46 AM _ami_: umm.. how would i know what you have seen in videos? :)
12:46 AM polprog: are you looking at surface mount components or through hole?
12:47 AM hcifi: sorry here it is, it was the first result https://www.youtube.com/watch?v=H3-TfdZVBCc
12:47 AM hcifi: past the 1:00 mark it shows the underside, and the joints seem to be touching
12:48 AM _ami_: well.. thats not PCBs.. its just a perfboard.
12:49 AM _ami_: https://pbs.twimg.com/media/Ch-zM73UUAA4qPC.jpg -> this was my first AVR board on perfboard.
12:49 AM hcifi: ok, so a pcb would have the actual connections already printed onto it
12:49 AM hcifi: something like that would be perfect
12:50 AM hcifi: so a perfboard is what I'm looking for
12:50 AM _ami_: then buy those and start soldering
12:51 AM hcifi: so is this a perfboard? https://images-na.ssl-images-amazon.com/images/I/71OpMYaGWtL._SY355_.jpg
12:51 AM _ami_: Yup
12:51 AM hcifi: ok, thanks
12:54 AM MrSheesh is now known as Mr_Sheesh
01:19 AM polprog: ehh, first day of school today
02:12 AM Emil: polprog: ayyy
02:12 AM Emil: me too
03:41 AM crib- is now known as crib
07:04 AM kvik_: I have one of those 256RFR2 SoC modules with 802.15.4 radio http://media.digikey.com/Photos/Atmel%20Photos/ATZB-256RFR2-XPRO.jpg that refuses to reset because Vcc is shorted to the RESET somewhere on/in that PCB, rendering it useless. what are my chances of desoldering that module from the surounding breakout board with only a cheap chinese soldering iron? I planned to break of the header pins that get in the way and try to suck up as much
07:04 AM kvik_: solder as I can with soder wick and then try to break it off the board, hoping that it isn't glued.
07:08 AM Haohmaru: kvik_ have you measured resistance between vcc and the reset pin?
07:17 AM kvik_: well, it beeps. thing is, I wanted to repair it at first but I have no tools or skills to do it since this thing uses the tiniest SMD components that I can't differentiate from a dust mote when on their back. first I thought that the reset pull up is shorted but when I removed it the problem stayed the same. now, even if I find the fault place I have little chance of putting that tiny pullup back on.
07:20 AM Haohmaru: check the actual resistance
07:21 AM kvik_: anyhow, I wanted to have the bare modules to work with anyway since this whole breakout thing is useless for my purpose
07:21 AM Haohmaru: if it's like below 1 ohm, it's probably a solid short (could be a solder blob/connection)
07:21 AM Haohmaru: if it's more - then it may be an actual resistor somewhere
07:23 AM kvik_: measuring between device reset and vcc pins the resistance is 3 ohm, and on the reset pin and Vcc input to the board the resistance is huge.
07:24 AM Haohmaru: hm.. 3ohm
07:24 AM kvik_: so it is probably a short on those pins as they are next to each other
07:24 AM Haohmaru: what does your multimeter say when you touch the actual probes together?
07:24 AM kvik_: 0.5 ohm
07:24 AM Haohmaru: typical
07:25 AM Haohmaru: so 3 ohms is not exactly a full short
07:25 AM Haohmaru: try re-heating the pins with the iron
07:25 AM Haohmaru: try and see if the 3 ohm situation changes
07:26 AM polprog: a little flux could help
07:27 AM kvik_: I'll try that before desoldering the whole thing
07:46 AM Lambda_Aurigae: I suspect there is a pullup resistor somewhere that has a solder wisker under it.
07:46 AM polprog: a strong pullup :P
07:46 AM Lambda_Aurigae: yeah..
07:47 AM Lambda_Aurigae: with which, it should run but resetting the device or reprogramming might prove tedius.
07:49 AM Lambda_Aurigae: 80V current limited to maybe 10A between reset and VCC should clear the problem....might cause other problems,,but,,,,
07:50 AM polprog: light emitting resistor
07:50 AM Haohmaru: a nice excuse to play with high voltage and current
07:51 AM Lambda_Aurigae: polprog, that's what I'm gonna label my incandescent lamps!
07:52 AM Lambda_Aurigae: LER
07:52 AM Haohmaru: uh oh
07:58 AM _kvik: I tried re-heating the reset and Vcc pins but nothing changed, still 3 ohm between them. anyway, fixing this thing is not an option, my hands are shaking very badly right now because today I ate only coffee and something else is wrong with me too. can't see that well either and the only tools I have is a meter and a bad iron. so, I want to remove that module from the board, I don't need the board. do you think they glued to module before
07:58 AM _kvik: soldering it?
07:59 AM Lambda_Aurigae: probably not
07:59 AM Lambda_Aurigae: but without having one to actually look at here, no way to tell.
08:01 AM _kvik: guess I should just try it, I am going to bin that thing anyways so...
10:12 AM enh: hi
10:16 AM tpw_rules: Lambda_Aurigae: ah, the Empirical Method
10:20 AM Lambda_Aurigae: hands on method.
10:20 AM tpw_rules: _kvik: so uh i highly recommend trying again tomorrow
10:21 AM tpw_rules: as someone with similar problems to you, you'll just fuck it up more and keep breaking stuff until you start crying
10:22 AM Lambda_Aurigae: I have similar shaky hands issues, mostly from peripheral neuropathy from diabetes.
10:53 AM enh: consider going vegetarian, Lambda_Aurigae. Cleaning you body reduces physiological stress and triggers many self cure processes. Also, if you wish, have a look at a book called 'eat stop eat'
10:56 AM Lambda_Aurigae: I would starve to death.
10:57 AM enh: You are limited by your beliefs.
10:57 AM Lambda_Aurigae: I have a very narrow range of vegetables I will eat.
10:57 AM Lambda_Aurigae: by my tastes too.
10:57 AM enh: yep.
10:57 AM Tom_L: stop feeding your taste buds
10:57 AM Lambda_Aurigae: and there are many that I can't et.
10:57 AM Lambda_Aurigae: eat
10:57 AM enh: your tastes, then, dictate your limits
10:58 AM enh: in the vedas it is said that our life is only limited by our likes and dislikes.
10:58 AM Lambda_Aurigae: anything in the squash arena or sweet potatoes make my tongue itch in small quantities and make me violently ill in larger quantities.
10:58 AM Lambda_Aurigae: yeah, I've dealt with the vedas before
10:58 AM Lambda_Aurigae: the prayer that is PI is interesting.
10:58 AM Lambda_Aurigae: predating greek math by several thousand years even.
10:58 AM enh: this may be a transient state. After a thorough cleansing things may change
10:59 AM Lambda_Aurigae: I've always been allergic to squash type stuff.
10:59 AM Lambda_Aurigae: even as a baby I couldn't eat it.
10:59 AM enh: 30 days of only integral rice meals and see how your body behaves then.
10:59 AM enh: may change a lot
10:59 AM Lambda_Aurigae: probably.
10:59 AM Lambda_Aurigae: but one gets bored with rice.
10:59 AM enh: just a suggestion
11:00 AM enh: bored with rice, happier with life
11:00 AM Tom_L: yeah i agree about the rice getting boring
11:00 AM Lambda_Aurigae: I love rice.
11:00 AM Tom_L: i'm stuck eating brown rice
11:00 AM Lambda_Aurigae: but it shoots my blood sugar up horridly.
11:00 AM Lambda_Aurigae: as do most starchy foods.
11:01 AM Lambda_Aurigae: and if I were to go to eating greens, I would be grazing 12 hours a day.
11:01 AM enh: all this seems transient
11:01 AM enh: but the truth is up to you
11:01 AM Lambda_Aurigae: tried multiple different diets, 6 months at a time.
11:01 AM Lambda_Aurigae: best diet for my overall health is large quantities of protein.
11:01 AM Lambda_Aurigae: and very little starch or carbs.
11:01 AM enh: you are limited by your beliefs
11:02 AM enh: we all are
11:02 AM Lambda_Aurigae: of course
11:02 AM Tom_L: not always
11:02 AM Tom_L: i don't agree
11:02 AM Lambda_Aurigae: and I believe I love to eat dead animals!
11:02 AM enh: i believe you can get rid of shaking hands and diabethes
11:02 AM enh: in three months
11:03 AM _kvik: my hands were always kinda shaky, guess because I am prone to stress. then starting college I dropped some 30 kg in 2 months by basically not eating. never ate that well either - I eat about 4 veggies and no fruit at all. and to top it all of I indulged in psychoactive drug abuse which fucked my head up... so I shake
11:03 AM Lambda_Aurigae: _kvik, stress...I don't suffer from stress...I am, however, a carrier.
11:03 AM enh: but when you remove meat, you cannot restrict the rest.
11:03 AM enh: _kvik: you know when you go right and when you go wrong
11:04 AM Lambda_Aurigae: I would rather die young fat and happy than old skinny and miserable.
11:04 AM enh: world loses if you die. The average intelligence reduces.
11:05 AM Lambda_Aurigae: of course.
11:05 AM Lambda_Aurigae: the world is just a figment of my imagination after all.
11:05 AM enh: there are not many of you around.
11:05 AM Lambda_Aurigae: I know everything. You are all just manifestations of my knowledge and imagination.
11:05 AM enh: it is hard to find who to chat with in this world
11:06 AM Lambda_Aurigae: I'm always talking with myself...it is easiest that way.
11:06 AM Lambda_Aurigae: aaand, I got a server that won't boot...
11:06 AM Tom_L: do you talk back too?
11:06 AM enh: from the vedas, you are that. Tat tvam asi
11:06 AM Lambda_Aurigae: Tom_L, yes,,,and sometimes even win an argument.
11:06 AM enh: :)
11:07 AM Lambda_Aurigae: or, You are You, in one of the looser translations
11:08 AM enh: From the vedas also, you are not your body, your thoughts or your emotions. You are the one who observes. And from the whole, if you take the whole, there remains indeed, only the whole.
11:08 AM Lambda_Aurigae: or, that you are everything and everyting is you...in a round about way.
11:08 AM enh: So... yep.
11:08 AM Lambda_Aurigae: yes, I did a little study of the vedas some years ago.
11:08 AM enh: takes time to see that around, though
11:09 AM enh: while you are here you have a lot to teach. Seize that time.
11:09 AM Lambda_Aurigae: worked with a guy named Suresh who was one of our programmers from India who was an initiate in the vedas and supposed to become some high mucky eventually.
11:09 AM enh: lucky you
11:10 AM Lambda_Aurigae: he earned enough money in 10 years of programming to move home and live a life of relative luxury studying the vedas for the rest of his life.
11:11 AM enh: well.
11:11 AM enh: lucky him, then
11:11 AM Lambda_Aurigae: he taught me vedic math and some other stuff.
11:12 AM Lambda_Aurigae: and I taught him Tai-Chi
11:12 AM enh: tai chi is good too
11:12 AM enh: i did some
11:12 AM Lambda_Aurigae: I learned it in two different manners.
11:12 AM Lambda_Aurigae: the slow simple relaxing system
11:12 AM enh: wu and ru schools
11:12 AM Lambda_Aurigae: and, tai-chi as a combat art.
11:12 AM enh: very useful
11:12 AM Lambda_Aurigae: I also learned Tae Kwon Do, traditional korean style.
11:12 AM enh: i had to use it some times
11:13 AM enh: i don't
11:13 AM Lambda_Aurigae: and am currently studying old styles of aikido.
11:13 AM enh: that is in my list
11:14 AM enh: for later, when i start to have time again
11:14 AM Lambda_Aurigae: and really screwing with my instructor because I mix other arts in during sparing sessions.
11:14 AM Lambda_Aurigae: sparring
11:14 AM enh: tradition is important
11:14 AM Lambda_Aurigae: in a way, yes.
11:14 AM Lambda_Aurigae: but so is flexibility.
11:14 AM enh: to keep those lines alive
11:14 AM enh: for flexibilty try pilates.
11:14 AM Lambda_Aurigae: being able to smoothly shift from one art to another during a fight really screws with your opponents.
11:15 AM enh: i imagine so
11:15 AM Lambda_Aurigae: by flexibility I mean the ability to change and adapt.
11:15 AM enh: ah
11:15 AM enh: understood
11:15 AM Lambda_Aurigae: not only do I study and practice unarmed combat but I'm also rather skilled and continue to practice and expand armed combat techniques.
11:16 AM Lambda_Aurigae: melee and thrown weapons.
11:16 AM Lambda_Aurigae: my throwing accuracy is crap and always has been but my strength kinda makes up for it.
11:16 AM enh: yo have space for that
11:16 AM Lambda_Aurigae: I have access to acres of space if I want.
11:17 AM enh: i wish i could find space to learn knife throwing
11:17 AM enh: now i cannot
11:17 AM Lambda_Aurigae: we were discussing guns and such here at work...guys around here have concealed carry permits...but they can't carry at work..against the rules.
11:17 AM Lambda_Aurigae: they were bragging about the guns they were carrying,,,which they have to leave in their cars.
11:18 AM Lambda_Aurigae: I had one guy set a box up on a table and draw a circle on it...I was about 5 meters away...as he stepped back that box grew a 35cm long screwdriver.
11:18 AM Lambda_Aurigae: which had been tucked into my belt.
11:18 AM Lambda_Aurigae: one of the tools I always carry all day long.
11:18 AM enh: here in this nice country, permits are rare and only given to armed forces personnel. But thieves, burglars etc, of course, don't care about permits
11:19 AM Lambda_Aurigae: so, where is his gun vs where are my screwdrivers?
11:19 AM Lambda_Aurigae: he relies on that one weapon...I rely on whatever is to hand.
11:19 AM enh: Never though about throwing screwdrivers...
11:19 AM enh: nice thought. :)
11:19 AM Lambda_Aurigae: if you are good enough you can hit someone with either the blade of the handle.
11:20 AM Lambda_Aurigae: and, out to 10 meters, I'm good enough to choose which end hits.
11:20 AM enh: again... I need space to practice those skills
11:20 AM enh: unfortunately.
11:20 AM Lambda_Aurigae: you have an alley that's about 5 meters long and 2 meters wide or so?
11:20 AM enh: kid woke...
11:20 AM enh: there goes my time...
11:20 AM Lambda_Aurigae: go get a cardboard box and a handfull of screwdrivers.
11:21 AM enh: :)
11:21 AM enh: I'll think about that :)
11:23 AM Lambda_Aurigae: start short,,,2 or 3 meters.
11:23 AM Lambda_Aurigae: get good..work on accuracy and pivoting of the tool.
11:24 AM Lambda_Aurigae: it should flip end for end and hit blade first.
11:24 AM Lambda_Aurigae: out to 5 meters it should not flip more than that.
11:24 AM Lambda_Aurigae: beyond that you might want an additional rotation
11:24 AM Lambda_Aurigae: that's what you practice for first.
11:25 AM Lambda_Aurigae: hitting the target with the blade.
11:25 AM Lambda_Aurigae: hold screwdriver by the blade when throwing...slides out of the hand easier.
11:25 AM enh: ok
11:25 AM Lambda_Aurigae: for knife, it depends on several factors, including the smoothness of the handle, the width of the handle, balance of the blade, and just how it feels.
11:26 AM Lambda_Aurigae: work on one distance...get good at it..add a meter, wash, rinse, repeat
11:26 AM Lambda_Aurigae: once you can do that out to 5 meters without bumbling, then you are armed wherever you go with a screwdriver.
11:26 AM enh: i guess practicing with a screwdriver makes practicing with a knife easier
11:27 AM polprog: throwing screwdrivers?
11:27 AM enh: I'll definitely spend some time on that
11:27 AM Lambda_Aurigae: if you practice with several different sizes and weighs of screwdrivers,,,after you get good with one size,,then knives become much easier.
11:27 AM enh: polprog: removing screws from a distance
11:27 AM Lambda_Aurigae: polprog, yeah...awesome weapons.
11:27 AM polprog: i ended up making a hole in the box and breaking the handle off...
11:28 AM polprog: i prefer wood axes
11:28 AM Lambda_Aurigae: cheap crap screwdrivers?
11:28 AM polprog: yes, cheap crap neon screwdriver
11:28 AM Lambda_Aurigae: but when you are in an office and someone comes in with a gun, what's more available to hand? screwdriver or axe?
11:28 AM polprog: altough i have a KIA one, that might do
11:28 AM Lambda_Aurigae: I ALWAYS have a screwdriver with me at work.
11:29 AM polprog: i should too, a flathead as EDC
11:29 AM enh: i like this channel a lot.
11:29 AM polprog: i should learn that, throwing screwdrivers. OSHA approved!
11:29 AM Lambda_Aurigae: https://store.snapon.com/Cabinet-Type-Hard-Handle-Chrome-Phillips-1-Instinct-Hard-Grip-Orange-Screwdriver-P646702.aspx
11:29 AM polprog: enh: me too :P
11:29 AM Lambda_Aurigae: that's what I carry.
11:29 AM Lambda_Aurigae: it's in my back pocket right now in fact.
11:30 AM polprog: Lambda_Aurigae: not an excelite greenie?
11:30 AM polprog: i want one like that
11:30 AM Lambda_Aurigae: actually, not quite..mine is longer and a #2 blade.
11:31 AM enh: This is soo interesting: http://www.newmessage.org/free/school/Welcome_to_the_Free_School_of_the_New_Message.html
11:31 AM Lambda_Aurigae: https://store.snapon.com/Cabinet-Type-Hard-Handle-Chrome-Phillips-2-Instinct-Hard-Grip-Orange-Screwdriver-P646703.aspx
11:31 AM Lambda_Aurigae: that one.
11:32 AM Lambda_Aurigae: enh, asking for login.
11:32 AM Tom_L: mine have the old black handles
11:32 AM Lambda_Aurigae: I have one like that.
11:33 AM Lambda_Aurigae: I like the new triangle hard plastic wrapped in rubber grip like that one.
11:33 AM Lambda_Aurigae: company buys them.
11:33 AM Tom_L: the plastic fell apart on a couple so i had the top replaced
11:33 AM polprog: hmm, i dont have much screwdrivers, apart from a universal driver kit
11:33 AM Lambda_Aurigae: I also have a 5.5mm nut driver of the same dimensions.
11:33 AM enh: http://www.newmessage.org/the-message/volume-1/greater-community
11:33 AM Lambda_Aurigae: I have a cheap 25cm heavy flat blade in the drawer next to me too.
11:34 AM Lambda_Aurigae: it is heavier than the snapon screwdrivers by quite a bit.
11:34 AM enh: going for lunch. Be back soon, i hope
11:35 AM Lambda_Aurigae: I need to go unbox a couple of copiers.
11:35 AM Lambda_Aurigae: laters.
11:36 AM polprog: later
11:36 AM polprog: gotta clean up the room...
11:38 AM polprog: lol, pimped up hakko iron station: http://assets.tequipment.net/assets/1/26/DimLarge/936_rc_g_image_1.jpg
11:46 AM Lambda_Aurigae: do the flames make it hotter?
12:07 PM antto: i see there are a bunch of usb oscilloscopes, cheap ones.. they have a few connectors for probes and require a computer program to actually control the thing.. that's all fine but is there anything like that usable with linux?
12:10 PM Lambda_Aurigae: probably.
12:10 PM Lambda_Aurigae: would have to dig for one myself.
12:12 PM antto: you mean you also want something like that?
12:13 PM Lambda_Aurigae: http://www.bitscope.com/
12:13 PM Lambda_Aurigae: I made my own.
12:14 PM Lambda_Aurigae: although, I use logic probes and logic analyzers much more than oscilloscope.
12:15 PM LeoNerd: I find sigrok works well for my LA, which is one of the cheap Saleae clones
12:15 PM Lambda_Aurigae: my oscilloscope is limited to audio frequencies though.
12:15 PM Lambda_Aurigae: I took the logic shrimp/logic pirate system and modded it to fit my purposes.
12:16 PM Lambda_Aurigae: added a lot more ram and did some interleave to get stable high speed.
12:18 PM polprog: antto: Sigrok, and PulseView
12:19 PM polprog: good software, check with wiki if something you wanna buy is supported
12:19 PM Lambda_Aurigae: I have 8 megabits of storage on my super logic pirate,with dual 4-chip interleave so I can get 80Ms/s if I really needed it.
12:21 PM antto: i so want to make my own scope too
12:21 PM antto: but i'm much n00b stil
12:21 PM LeoNerd: Highly nontrivial :)
12:21 PM LeoNerd: I'd suggest starting at a far simpler end of test equipment and slowly work up to it
12:22 PM antto: i was thinking about these things that control a mirror.. slap a laz0r at it and you can project the waveform
12:22 PM * LeoNerd currently working on a voltmeter
12:22 PM Lambda_Aurigae: LeoNerd, I built one a couple years back...free sample of voltmeter chip from maxim-ic.com
12:22 PM antto: LeoNerd i've made a virtual oscilloscope, so i kinda know some things
12:22 PM Lambda_Aurigae: 12 USD for the chip to buy it.
12:22 PM antto: but that's low-speed DSP
12:23 PM LeoNerd: Lambda_Aurigae: voltmeter... chip?
12:23 PM Lambda_Aurigae: they sent me a couple of samples.
12:23 PM LeoNerd: Surely that's an ADC
12:23 PM Lambda_Aurigae: yeah...actually DMM chip.
12:23 PM LeoNerd: Eugh, no.. ADC. I don't see any reason these days not to just stick some sort of MCU in the middle of the board
12:23 PM LeoNerd: That's how I make all mine now. Then it's trivial to just stick a serial port on it and have PC control
12:24 PM Lambda_Aurigae: max-134
12:24 PM LeoNerd: Infact, my general design is a bunch of equipment that has some basic utility on its own, but really intended to be linked all together under a big PC control bench
12:24 PM LeoNerd: I have a voltmeter.. that's great. It can measure voltages.
12:24 PM LeoNerd: I have a current source. That's great, I can source currents.
12:25 PM LeoNerd: But under PC control, additionally I have a highly precise 4wire resistance meter. For free.
12:25 PM Lambda_Aurigae: it does voltage, amperage, ohms, etc
12:25 PM LeoNerd: Each new item you add suddenly massively expands the scope (pardon the expression) of the rest of it
12:25 PM Lambda_Aurigae: tied it to a pic16f1454 with hardware usb and playing with writing an android client for it.
12:26 PM Lambda_Aurigae: oh, of course.
12:26 PM Lambda_Aurigae: I did this with all free sample stuff as a funzie play and learn project.
12:26 PM * LeoNerd nod
12:26 PM Lambda_Aurigae: ultimate goal is to make an android based voltage and current draw data logger.
12:26 PM Lambda_Aurigae: using an old android phone.
12:27 PM Lambda_Aurigae: put it in line with a copier and watch for voltage spikes and brownouts and such.
12:27 PM LeoNerd: Mine's definitely PC-aimed. PC has a real keyboard, mouse, decent-sized screen.. internet... amazingly broad scripting ability...
12:28 PM LeoNerd: Really, the actual test equipment devices themselves are just "real world to PC bus" frontend hardware, with a bit of local control / display to make them useful standalone as well
12:28 PM antto: polprog sigrok looks like the right thing, muchos thanksos
12:28 PM LeoNerd: Yah; sigrok is good for scopes :)
12:28 PM Lambda_Aurigae: I've got this all mounted in a commercial surge supressor box.
12:29 PM antto: it seems i can even test it at work with the dumb rigol 1052
12:29 PM antto: but i still need a scope for myself ;P~
12:29 PM Lambda_Aurigae: even have a small 5V supply tucked in there to keep the old samsung galaxy-y cellphone running.
12:30 PM Lambda_Aurigae: my biggest hurdle is programming the android to gather and store the information. I keep doing starts and stops and never finish the project as I get distracted by(SQUIRREL) other things..
12:30 PM LeoNerd: Hmm.. Android programming isn't something I've looked at yet
12:31 PM LeoNerd: I haven't found a way to start that doesn't begin "download this gigabyte-sized java IDE and play point-and-click with the mouse for half an hour"
12:31 PM LeoNerd: I want to type code into vim and than run "make; make install"
12:31 PM antto: like a real h4x0r
12:31 PM LeoNerd: Like /every other/ sort of source code project I work on
12:32 PM Lambda_Aurigae: LeoNerd, me too...that's part of what I'm trying to do with this project.
12:32 PM LeoNerd: It's a workflow I'm very used to from 15 years. I'm very efficient at it
12:32 PM Lambda_Aurigae: get into real android programming, not script kiddy-ing
12:33 PM antto: mouse-clickz0r kiddying
12:34 PM Lambda_Aurigae: if I wanted to program with point and click crap I would load windows and install visual studio.
12:35 PM LeoNerd: Mmm :)
12:36 PM antto: i wonder if there's a wizard dialog for creating a while loop ;P~
12:37 PM antto: but i'm kinda guilty myself.. i use wxSmith
12:38 PM Lambda_Aurigae: while(1);
12:38 PM Lambda_Aurigae: infinite while loop!
12:38 PM polprog: antto: np
12:39 PM antto: blame the IDE!
12:41 PM polprog: LeoNerd: Ive been doing android dev for a little bit. and trust me, you dont want to type code in vim, especially if you are writing the terribly long XMLs describing different screens of your app. I ADMIRE console based dev, the fact thaqt i once write a small makefile and then just make && make flash, it's ergonomic, no bells and whishtles etc.
12:41 PM polprog: but Android dev is one of the things i would not like to do that way
12:41 PM LeoNerd: polprog: You are presuming I'll be writing long XML files to describe UI elements?
12:42 PM dsalychev1 is now known as dsalychev
12:42 PM polprog: LeoNerd: as far as i know that's the typical workflow for android devm if youre making a standard app
12:42 PM polprog: ofc if it's opengl or other thing it's gonna be a whole different story
12:43 PM LeoNerd: Yah; that's the "standard app" part coming in :)
12:43 PM LeoNerd: I'm not
12:43 PM polprog: what are you gonna develop?
12:44 PM polprog: i dont know how the whole source-to-apk process goes down as it's usually handled by the ide
12:44 PM LeoNerd: In summary: most programs have an idea of the UI built in. Whereas mine takes it from the network
12:44 PM NoHitWonder: its handled by gradle
12:44 PM LeoNerd: The entire app *is* the UI frontend for a server-defined application running elsewhere
12:44 PM NoHitWonder: or ant
12:45 PM LeoNerd: The app just has to build UI division boxes, place buttons and labels and whatever else into those divisons, where told by the network
12:45 PM LeoNerd: It's entirely dynamically-driven
12:46 PM polprog: interestin
12:46 PM polprog: why not make it a HTTP thing then?
12:46 PM LeoNerd: I don't think you mean HTTP
12:46 PM NoHitWonder: this is a good book https://www.packtpub.com/application-development/mastering-android-ndk
12:47 PM polprog: s/HTTP/web app
12:47 PM LeoNerd: Anyway; the point is to be an android frontend for http://www.leonerd.org.uk/code/circle/
12:47 PM LeoNerd: HAH
12:47 PM LeoNerd: Yes; web app. != HTTP thing
12:47 PM polprog: yes i know, brainfart
12:47 PM polprog: but you got the general idea
12:47 PM LeoNerd: I dislike the thought of writing Java, but that is still about a hundred times more preferrable than writing javascript for a web browser
12:48 PM polprog: also, crux <3
12:48 PM polprog: the best window theme in linux land
12:48 PM Emil: LeoNerd: lol
12:48 PM LeoNerd: Yah...
12:48 PM Emil: LeoNerd: javascript is pretty pleasant to write
12:48 PM LeoNerd: A shame it doesn't build for GTK3 though :(
12:48 PM Emil: Much more so than Javashite
12:48 PM LeoNerd: Emil: Well, the lowest level of writing *javascript* language isn't all that unpleasant.. at least now ES6.
12:49 PM LeoNerd: It's the whole upper layering of having to deal with web browsers and all that crap
12:49 PM Emil: LeoNerd: if you mean frameshitworks
12:49 PM Emil: LeoNerd: lol why you use frameworks?
12:49 PM antto: hantek DSO2090 seems to be one option
12:49 PM polprog: but i dont see the point of that project... you are basically writing excess code for something that has a dozen implementations, for example if i want to IRC from phone i just SSh to my VPS and attach a screen session...
12:49 PM LeoNerd: antto: Yah; Hanteks are generally held in high regard
12:49 PM LeoNerd: polprog: Yes; see the point about keypress roundtrips. That is the principle thing I'm avoiding
12:50 PM LeoNerd: polprog: Every letter you press has to *individually* cross the mobile network. Every backspace to edit a typo. Every time you scroll up or down a buffer, or change tabs on view.
12:50 PM polprog: im okay with waiting a bit for my charaters to show up
12:50 PM LeoNerd: polprog: The entire point for me is that I don't. My line editor is local. My scrolling and tab-switching is local.
12:50 PM LeoNerd: I send some network bytes to send a new line of text; I receive some network bytes when new content has to appear in a window, but other than that, nothing happens
12:51 PM LeoNerd: Plus it means my local program is a *real* local program; I can view images or download files or interact with desktop notifications or... whatever
12:51 PM LeoNerd: ssh-to-screen can do none of these things
12:51 PM * LeoNerd feels we *may* have strayed a little from #avr topic however ;)
12:52 PM Lambda_Aurigae: and, what's new?
12:52 PM Lambda_Aurigae: hehe
12:54 PM polprog: good luck in the project then. it's cool that you spread it across many platforms!
12:54 PM LeoNerd: Yup; that's mostly the point again. :) To write one program for many platforms at once
12:55 PM * polprog feels #avr topic is just a guideline, not a law
12:55 PM Lambda_Aurigae: more of a suggestion
12:56 PM LeoNerd: \PiratesOfTheCarribeanMeme{#avr topic is more of a guideline}
12:56 PM remkooo1 is now known as remkooo
12:58 PM rue_shop3: ok, so, if I want to make an IR transmitter from a tiny13, I have to dial it up to 8Mhz
12:59 PM Lambda_Aurigae: that much all depends.
12:59 PM rue_shop3: or... how much can osccal swing the freq?
12:59 PM Lambda_Aurigae: you can make an IR transmitter with a battery, resistor, button, and IR LED.
12:59 PM Emil: rue_shop3: a fuckton
12:59 PM rue_shop3: do 988Khz do you think?
12:59 PM rue_shop3: Lambda_Aurigae, not a 38Khz sony protocol one
01:00 PM Emil: rue_shop3: your question was about total swing
01:00 PM Lambda_Aurigae: ok..now we are getting specifics.
01:00 PM Emil: rue_shop3: you mean accuracy/resolution?=
01:00 PM rue_shop3: I just need to run the avr at a multiple of 38Khz
01:01 PM remkooo1 is now known as remkooo
01:01 PM Emil: rue_shop3: umm
01:01 PM LeoNerd: Preusumably the multiple factor being enough to have spare cycles for driving the IED
01:01 PM Emil: Then you'll need a crystal
01:01 PM rue_shop3: na, dosn't have to be dead on
01:03 PM rue_shop3: oh 50%
01:03 PM rue_shop3: yea
01:03 PM rue_shop3: ok
01:03 PM rue_shop3: waaaait
01:04 PM rue_shop3: its normal freq is 1.2Mhz?
01:04 PM rue_shop3: wait, wait what
01:04 PM rue_shop3: ok, there is a DIV8 flag
01:04 PM rue_shop3: which makes it run "1Mhz"
01:04 PM rue_shop3: but...
01:05 PM rue_shop3: if you turn it off, your running at 9.6Mhz?
01:06 PM Lambda_Aurigae: looks like 4-5mhz or 8-10mhz
01:07 PM rue_shop3: not at 9.6Mhz / 8
01:07 PM Lambda_Aurigae: factory calibration is 4.8 or 9.6
01:07 PM JanC_ is now known as JanC
01:07 PM Lambda_Aurigae: 4-5 and 8-10 is the calibration adjustment range according to the datasheet.
01:07 PM rue_shop3: your looking at CKSEL
01:07 PM Lambda_Aurigae: nope
01:07 PM rue_shop3: I'm looking at div8 and osccal
01:08 PM rue_shop3: page 22 of the datasheet?
01:08 PM Lambda_Aurigae: section 18.4.1
01:08 PM Lambda_Aurigae: page 118
01:09 PM rue_shop3: I dont have section numbers and my page 118 is table 58, ADC characteristics
01:09 PM Lambda_Aurigae: different datasheet then
01:10 PM rue_shop3: ok the picture seems to look like this
01:10 PM Lambda_Aurigae: http://www.atmel.com/images/doc2535.pdf
01:10 PM Lambda_Aurigae: page 149 gives a graph of osccal values vs frequency.
01:11 PM rue_shop3: there is a 9.6Mhz RC osc, it can be used at 9.6Mhz (cksel = 10) or 4.8Mhz (sksel = 01) and that can be divided by 8 with the DIV8 fuse
01:11 PM rue_shop3: and osccal seems to be able to swing 50% either way of the nom freq
01:12 PM Lambda_Aurigae: if you look at page 148 it gives graphs vs voltage and temperature too.
01:12 PM LeoNerd: 9.6MHz gives you nearly 253 cycles per 38kHz tick
01:12 PM LeoNerd: Should be plenty :)
01:12 PM rue_shop3: yup
01:12 PM rue_shop3: yea
01:13 PM rue_shop3: it looks like if I dial it to 9.728Mhz I'm good, or
01:13 PM rue_shop3: 9.424Mhz
01:13 PM rue_shop3: with div8 set, dividers of 31 and 32 respectivly
01:14 PM rue_shop3: hey, can the pwm do /32?
01:14 PM rue_shop3: yea, use /1 and top at 32
01:14 PM rue_shop3: ah cool
01:15 PM Lambda_Aurigae: won't most of those IR remotes work from 37 to 39 Khz?
01:15 PM rue_shop3: yes
01:15 PM rue_shop3: I'd like to TRY to hit 38
01:16 PM Lambda_Aurigae: some even as high as 40Khz
01:16 PM rue_shop3: the range drops off if your out of tune
01:16 PM Lambda_Aurigae: yup
01:16 PM Lambda_Aurigae: add more LEDs!!!
01:16 PM rue_shop3: back in 2000 we used it for a distance sensor
01:16 PM rue_shop3: you would dial the freq till the signal stopped comming back, by how far you'd dialed, you had your distance
01:16 PM Lambda_Aurigae: so, my IR remote will also make toast...but I can turn off the TV from 100 meters!
01:17 PM LeoNerd: rue_shop3: huh... I wonder how that works
01:17 PM Lambda_Aurigae: LeoNerd, signal strength through the bandpass filter.
01:17 PM rue_shop3: the pll in the detector
01:17 PM rue_shop3: or either
01:17 PM Lambda_Aurigae: hard filter or pll...either way.
01:18 PM LeoNerd: Lambda_Aurigae: Oooh, right. So really you're measuring signal strength, just via the side-effect of making the bandpass less sensitive
01:18 PM Lambda_Aurigae: the band pass filter is a wider band but it's strongest in the middle of the band.
01:18 PM Lambda_Aurigae: prezaktly.
01:19 PM Lambda_Aurigae: imagine the capacitor needed to do a 1Hz to 2Hz bandpass filter?
01:25 PM rue_shop3: all those really neat digital filters that were come up with in the 80's
01:26 PM rue_shop3: so I had rev 2535d and you had 2535j
01:27 PM Lambda_Aurigae: I just google searched and grabbed whatever showed first.
01:27 PM Lambda_Aurigae: happens a lot with the atmel/microchip buyout..lots of revisions.
01:29 PM rue_shop3: just about jumped out of my skin, the sun hit the cell and started the shop cooling blower
01:29 PM rue_shop3: solar cell
01:29 PM rue_shop3: ok ths is good
01:30 PM rue_shop3: I can run the tiny13 at "1Mhz", use a top of 31 or 32, with a duty of 50%, tune it with osccal, and modulate it by flipping the io pin between input and output
01:30 PM rue_shop3: yay!
01:41 PM remkooo1 is now known as remkooo
01:45 PM remkooo1 is now known as remkooo
02:08 PM chutulu_ is now known as chutulu
02:08 PM vishwin60 is now known as vishwin
02:08 PM ravon_ is now known as ravon
02:08 PM pwillard_ is now known as pwillard
03:12 PM pro_z__ is now known as pro_z
04:11 PM robinak is now known as robink
04:37 PM rue_shop3: how do I get the div8 flag with avrdude
04:43 PM antto: 1) open datasheet 2) ??? 3) profit!
04:44 PM antto: rue_shop3 if possible, use the avrfusecalc website
04:44 PM antto: get'cha fuse configured
04:45 PM rue_shop3: I was seeing if anyone knew off the top of their head
04:45 PM rue_shop3: aparently nobody here is THAT good
04:45 PM Lambda_Aurigae: never used a tiny13 so no clue
04:46 PM Lambda_Aurigae: take the fuses, change the div8 fuse, write to chip
04:46 PM Lambda_Aurigae: oh..you want to read it.
04:46 PM Lambda_Aurigae: read the fuses.
04:46 PM rue_shop3: if you kow how to get the low fuses from avrdude, thats all you need to know
04:46 PM rue_shop3: just how to command line read the fuses
04:47 PM Lambda_Aurigae: -U lfuse:r
04:47 PM rue_shop3: :) too late
04:47 PM Lambda_Aurigae: figures
04:47 PM Lambda_Aurigae: I'm cooking.
04:47 PM LeoNerd: You don;t usually need to read the fuse
04:48 PM rue_shop3: ugh, I should have been cooking 2 hours ago
04:48 PM rue_shop3: on another note, I'm cooking
04:48 PM LeoNerd: It just defaults the register; you can set it at startup
04:49 PM Tom_L: rue_shop3 using the smoke alarm as your guide?
04:49 PM rue_shop3: no, not food, I'M COOKING
04:49 PM rue_shop3: I have a big blower going, powered by a solar cell on the roof
04:50 PM LeoNerd: I prefer to set it on startup so I don't rely on the fuse
04:50 PM rue_shop3: I dont think you can effect the DIV8 fuse from code
04:50 PM rue_shop3: my IR reciever code isn't working either way
04:52 PM LeoNerd: you can't affect the *fuse* no
04:52 PM LeoNerd: the fuse only sets the poweron defakt value foe the clock prescaler
04:52 PM LeoNerd: you can change *that* at runtime
04:53 PM rue_shop3: but the prescaler only selescte between 4.8 and 9.6Mhz
04:53 PM rue_shop3: which isn't /8
04:54 PM * antto collects typos from LeoNerd.. a bunch more and he'll have enough to construct a german gangsta rap song
04:57 PM LeoNerd: antto: phonetyping
04:57 PM antto: of course, blame your smartphone
04:57 PM antto: blame google!
04:57 PM antto: (they are guilty tho)
05:17 PM rue_shop3: AHA!!!!
05:17 PM rue_shop3: IF YOU COMPILE THE CODE BEFORE YOU UPLOAD IT, CHANGES TAKE EFFECT BETTER!!!!!!!!!!!!!!
05:17 PM rue_shop3: ~~~~ffffff....
05:19 PM Lambda_Aurigae: what?
05:19 PM Lambda_Aurigae: the tiny13 doesn't have an onboard C compiler suite?
05:19 PM Lambda_Aurigae: JARTZA! We need a C compiler for the tiny13, written in assembly please!
05:21 PM rue_shop3: I want it to run on an intel jvm thats emulated by the t13
05:21 PM Lambda_Aurigae: now you're just getting silly.
05:21 PM Lambda_Aurigae: that would take at least a tiny85
05:22 PM rue_shop3: well I been wondering what to do with my t85
05:22 PM rue_shop3: why is a t85 more than a m8?
05:22 PM Lambda_Aurigae: idiotic laws galore...in 1943, it was illegal for bakeries to sell sliced bread...between january and march.
05:23 PM Lambda_Aurigae: 85 is larger than 8?
05:23 PM rue_shop3: cost
05:23 PM Lambda_Aurigae: ask microchip.
05:23 PM rue_shop3: ~china~
05:24 PM Lambda_Aurigae: apparently, at the time, the government thought that the cost of wrapping sliced bread to keep it from drying out was significantly more than wrapping an unsliced loaf...enough so that it would hurt the war effort!
05:24 PM Lambda_Aurigae: ain't governments wonderful?
05:41 PM hetii: Hi :)
05:43 PM hetii: I play a a bit long time with my led strip based on ws2812b and I notice that some of the led in chain don`t pass signal to the next one. My strips are covered by silicon and when I remove it and push finger on dead led then it start working. Any experience in such behavior?
05:43 PM LeoNerd: Loose soldering/
05:43 PM LeoNerd: The strips can be quite easy to damage by bending them
05:44 PM hetii: the point is that even when I resolder each point it doesn`t help
06:23 PM rue_shop3: coding is like hunting in the wild
06:23 PM rue_shop3: stocking a problem for 5 hours before cornering and defeating it
06:33 PM Lambda_Aurigae: to answer hetii's question,,,cheap chinese crap construction.
06:36 PM Lambda_Aurigae: stocking...like, putting it on the shelf?
06:37 PM Lambda_Aurigae: :}
06:37 PM Lambda_Aurigae: stalking
06:39 PM rue_shop3: "If I disable the reset pin, will the device always be held in reset?" :)
06:39 PM yiimi is now known as yuumi
06:40 PM yuumi is now known as yiimi
06:40 PM Lambda_Aurigae: yes
06:40 PM Lambda_Aurigae: if you disable it while holding it in reset mode.
06:41 PM rue_shop3: whats the P channel version of the 2N7000?
06:41 PM Lambda_Aurigae: if, however, you disable the reset pin while the device is in power save mode then it will void several laws of physics and generate a wormhole which will suck your device into another reality.
06:42 PM Lambda_Aurigae: no clue on that one.
08:16 PM enh: interesting
08:17 PM enh: which device is that?
10:45 PM rue_shop3: #define SLEEP() asm volatile ("sleep"::)
10:51 PM rue_shop3: https://paste.debian.net/984468/
10:51 PM rue_shop3: that took most of the day
10:51 PM rue_shop3: more of the rest of it was taken up getting the reciever code that "already worked" to work
10:51 PM rue_shop3: I was surprised how heavy I ended up on the macros
10:54 PM rue_shop3: heh, 370 bytes
10:54 PM rue_shop3: sweeeet
10:57 PM LiaoTao: rue_shop3: Looks clean
10:58 PM LiaoTao: Wouldn't have used the xxxDelay macros myself but it doesn't really hurt when the code is simple :)
10:59 PM enh: I'm sure it is possible to make this blinker code simpler. Maybe you can shine some light on it: https://pastebin.com/N2Exdh6s
11:02 PM rue_shop3: why...... is .... it oop?
11:03 PM Snert: that's much more complicated than the blinky class I did. Wow.
11:03 PM rue_shop3: thats horrid
11:04 PM rue_shop3: I dont think its sleeping right, Its pulling 2mA
11:05 PM enh: it has three modes. Just blinking, attention blinking a number of times and repetitive attention blinking same number of times
11:05 PM LiaoTao: enh: Hungarian notation? Really?
11:05 PM * LiaoTao sads
11:06 PM enh: i like hungarian stuff. Why not notation?
11:06 PM enh: :)
11:06 PM enh: Can you make a three mode simple blinker?
11:07 PM enh: or a simpler three mode blinker?
11:09 PM Casper: LiaoTao: you would find my code to be painfull, because, well, it's meh :D
11:10 PM _ami_: damn.. pure virtual functions are pure EVIL! 30Kb text section is added when you use them. not worth.
11:10 PM LiaoTao: You really need to be careful with C++ on embedded ;/
11:11 PM Casper: LiaoTao: https://paste.pound-python.org/show/LNNNbA6Fae2xwOUMPlho/ <=== and, be in pain?
11:11 PM enh: there are no pure virtual functions on the code, _ami_
11:11 PM _ami_: enh, i know, i was talking abt my discovery today abt pure virtual functions.
11:11 PM rue_shop3: got it, wrong sleep mode
11:11 PM enh: They are veery bad on AVR.
11:12 PM rue_shop3: worst case stop is 4.6uA
11:12 PM LiaoTao: Casper: Actually, I kind of like it
11:12 PM LiaoTao: Looks like most C-code you come across :)
11:12 PM rue_shop3: everyone who knows much of anything knows not to use oop on an 8 bit microcontroller
11:13 PM Casper: LiaoTao: even with the uint32_t and the float/float division and ln() and _delay_us() ? :D
11:13 PM enh: i may not know much of anything then
11:13 PM LiaoTao: Casper: Haven't gotten there yet
11:13 PM _ami_: enh, they are bad for stm32 too.
11:13 PM rue_shop3: :) 4.6uA, this makes me happy
11:13 PM _ami_: i have not used cpp much on avrs since i know the limitation of 8 bits avrs.
11:13 PM Casper: there is lots of expensive function there
11:13 PM enh: _ami_: They make toe code so well organized
11:13 PM rue_shop3: I'm doing C on a tiny13, which IS EVIL
11:13 PM enh: a pity
11:14 PM Casper: like the float/float I think is 0.8k
11:14 PM rue_shop3: but, my code only pulls 374 bytes, so
11:14 PM Casper: which is alot on a 8k flash chip
11:14 PM _ami_: enh, indeed. it is the case. a well written cpp code can be very clean.
11:15 PM enh: forgetting about the oop stuff, this code is working well. I just cannot make it simpler tonight
11:15 PM _ami_: enh, i am trying to write a base tft class implementation for different tfts i have
11:15 PM _ami_: i got like 10 tfts
11:15 PM LiaoTao: Casper: Sure, but if you gotta do it you gotta do it
11:15 PM enh: ignorance alarm! what is a tft?
11:15 PM LiaoTao: Not sure why I would criticize you for not doing 1337 bit hacks
11:15 PM Casper: LiaoTao: the alternative was almost as big with LUT...
11:16 PM Casper: I wanted to use 64 bits integer to get more ADC precision... unfortunatelly... it is not supported on avr
11:17 PM LiaoTao: You're using a 64-bit ADC?
11:17 PM Casper: no
11:18 PM Casper: 10 bits, but I did multiple readout to get both more precision and drop the noise
11:18 PM enh: _ami_: I did all the project code in C++. All divided in classes. Very clean and easy to scale.
11:18 PM Casper: I have time to spare, so I was thinking to just read even more samples, but unfortunatelly, I can't do more than what I do...
11:19 PM enh: Sometimes I bump on a bug, though. Like virtual stuff.
11:21 PM enh: So... Do you think the blinker code can be made simpler?
11:31 PM Snert: Indubitably. But why bother. It's a good framework for any repetitive task not just leds.
11:33 PM enh: Thanks, Snert
11:33 PM Snert: I way way over engineered my blinky library too.
11:34 PM enh: It can send me codes, like low mem, or all ok
11:35 PM Snert: are you doing port manipulations to actually turn the led on or off?
11:35 PM enh: yep
11:36 PM enh: the GPIOn macros are there because I made my own boards and created pin mapping standards
11:36 PM enh: https://hackaday.io/project/11724-yauvec-yet-another-unmanned-vehicle-controller
11:37 PM enh: all the system development is made in modules following pin and code standards to make any hw upgrade easier.
11:38 PM Snert: if you're really doing all that on a mac, then kudos :)
11:38 PM enh: all on a mac. All open source. https://bitbucket.org/enhering/yauvc
11:38 PM enh: and open HW
11:39 PM enh: all command line. The only proprietary software i use is sublime text.
11:42 PM Casper: time to reboot for bios upgrade + kernel upgrade + video driver upgrade...
11:42 PM enh: good luck , Casper