#avr | Logs for 2016-12-25

Back
[05:20:45] <specing> ah C
[05:22:15] <twnqx> you missed the B in between ;)
[07:44:49] <Lambda-Aurigae> Dies Natalis Solis Invicti
[10:29:39] <martinus> Merry christmas everyone. Hope you're enjoying your day. Nice thing about stockings is you can fit a lot of uC's in there. ;)
[10:39:30] <Lambda-Aurigae> Dies Natalis Solis Invicti
[10:43:13] <Lambda-Aurigae> older than christmas and celebrated on december 25th before christmas was.
[10:45:58] <twnqx> just that we celebrate christmas on 24th! hah!
[10:46:24] <Lambda-Aurigae> originally it was celebrated in the spring.
[10:46:41] <twnqx> that's easter.
[10:46:47] <Lambda-Aurigae> yes
[10:47:27] <Lambda-Aurigae> but originally the birth of christ was in the spring...moved to december by the emperor of constantinople (yeah, can't spell it) to stop the fighting between the pagans and christians.
[10:48:39] <twnqx> heh
[10:48:43] <twnqx> first or second birth? :P
[10:50:05] <Lambda-Aurigae> hehe
[10:50:05] <sabor> assuming he was born at all :P
[10:50:49] <sabor> it's a good day to watch Live of Brian
[10:51:14] <martinus> Lambda-Aurigae: Merry Saturnalia!
[10:52:10] <Lambda-Aurigae> that works too.
[10:52:29] <Lambda-Aurigae> Well, Jesus is an english derivative of a greek name.
[10:53:09] <Lambda-Aurigae> there was no J or the sound of the letter J in Aramaic of 2000ish years ago...so there was no Jesus or Joseph or Joshua or Jehova.
[12:26:43] <cehteh> whats a simple circruit to cut off a cap from a supply voltage when it is charged (overvoltage protection for the cap)?
[12:27:16] <Lambda-Aurigae> lm317 voltage regulator
[12:28:38] <specing> fet+comparator+reference?
[12:29:32] <cehteh> very small and simpler
[12:30:39] <Lambda-Aurigae> kinda depends on the voltage and amount of power you want to waste.
[12:30:47] <Lambda-Aurigae> put a zener diode in parallel with the cap.
[12:32:35] <cehteh> i dont want to waste power, explanation/idea: i have a bicycle computer which runs from a 2032 cell and gets signals from a wired sensor
[12:33:16] <Lambda-Aurigae> well, ya see, you need to give some specifications rather than just ask a waaaay open ended question and expect the correct answer.
[12:33:28] <cehteh> i am thinking about removing the battery, add a small supercap or accumulator there, carge it from hub dynamo
[12:33:42] <Lambda-Aurigae> one of those 3 pin switch mode power supplies would work.
[12:33:42] <cehteh> the bicycle computer draws very little current
[12:34:03] <cehteh> and also use the hub dynamo A/C for generating the sensor signal
[12:34:35] <cehteh> the whole thing should fit onto the 2032 battery comparment
[12:35:16] <cehteh> (which is a lot thicker than the battery because there is some foam pad and thick enough plastics, so there is a bit space, but needs to be tiny SMD stuff anyway)
[12:36:06] <cehteh> wherent there some special purpose fets which close when there is voltage on the gate?
[12:36:49] <cehteh> such a fet, zener, resistor
[12:40:37] <specing> cehteh: how many 2032 per year does it empty?
[12:41:36] <cehteh> specing: the idea is about generating the tacho signal on the go and have less wires
[12:42:08] <specing> how tf are you going to have less wires if you replace the battery with two wires from dynamo?
[12:42:16] <cehteh> it has backlight which could draw the battery a bit faster, but battery drain is not the issue, i want to get rid of the wireing/sensor
[12:42:33] <cehteh> there is already a wire up to the light
[12:42:52] <cehteh> i only need a short wire from headlight to handlebar
[12:43:03] <cehteh> no sensor down the fork
[12:43:57] <cehteh> well i admit its some kind of brainfart.. just thinking if such wold be simple and worthwhile
[12:53:03] <Kre10s> what's the latest and greatest for flashing avr under linux?
[12:53:42] <specing> the shutdown utility
[12:57:10] <cehteh> avrdude
[12:58:35] <Lambda-Aurigae> latest, avrdude and a usbasp
[12:58:55] <Lambda-Aurigae> greatest does not include usbasp but any other programmer....stk200 clone in my opinion is much greater, but,,,
[13:18:13] <Kre10s> I ask because all i have is a usbprog 3.0 and am looking to get another programmer.
[13:19:53] <Lambda-Aurigae> well, the most common programmers are usbasp based cheap chinese programmer thingies.
[13:24:24] <cehteh> why do you need another in the first place?
[13:35:36] <Kre10s> It might break.
[13:35:59] <Kre10s> * I might break it...
[13:47:16] <Lambda-Aurigae> so build a usbasp...make sure you use the latest firmware.
[15:46:15] <rue_bed> I'v been lazy latley and am acutally using the arduino bootloader on the boards I get with avrdude to program them
[15:46:53] <rue_bed> seeing as pro mini's are cheaper than raw avr chips
[15:47:43] <rue_bed> there is a pro mini plus that actually has the isp on it
[15:47:54] <rue_bed> harder to find and a bit more expensive
[15:48:21] <rue_bed> but I'm not paying $8/chip anymore, this is good
[15:48:27] <Lambda-Aurigae> hehe.
[15:48:31] <specing> xD
[15:48:56] <Lambda-Aurigae> I've started buying stm32 boards for about 5 dollars each.
[15:49:03] <specing> I remember buying a PDIP-40 PIC for 15 euros about 10 years ago
[15:49:05] <rue_bed> 5!!!
[15:49:15] <Lambda-Aurigae> well, I wanted them fast.
[15:49:15] <rue_bed> $1.74!!
[15:49:20] <Lambda-Aurigae> got them in 2 days.
[15:49:23] <rue_bed> ah
[15:49:32] <Lambda-Aurigae> along with an st-link board.
[15:49:33] <rue_bed> I got a few, you started using them yet?
[15:49:41] <rue_bed> I got an led flashing
[15:49:42] <Lambda-Aurigae> just got them friday
[15:49:49] <Lambda-Aurigae> still reading datasheets and appnotes.
[15:49:57] <rue_bed> I had quite a time getting around a lock bit
[15:50:01] <Lambda-Aurigae> but I did get a command line build/upload environment setup already.
[15:50:20] <rue_bed> Ithink the folks in #microcontrollers helped me
[15:50:23] <rue_bed> which tools?
[15:50:29] <Lambda-Aurigae> stlink and gcc
[15:50:34] <rue_bed> there are two uploaders
[15:50:49] <rue_bed> but the board apparently come with a serial bootloader
[15:50:50] <Lambda-Aurigae> the st-link board I got does both stm32 and stm8
[15:51:03] <rue_bed> which is what I think the lock bits I had a problem with came from
[15:51:05] <Lambda-Aurigae> most stm32 chips have serial bootloader on them
[15:51:11] <rue_bed> stm32 for me
[15:51:13] <Lambda-Aurigae> some have usb bootloader that is dfu compatible.
[15:51:18] <rue_bed> hmm
[15:51:44] <rue_bed> the idea is to get them working for things by the time the avrs become unavailable
[15:51:58] <Lambda-Aurigae> these stm32103c8 boards have serial bootloader and SWD port.
[15:51:58] <rue_bed> as I dont trust microchip
[15:52:29] <Lambda-Aurigae> looks to me like microchip is doing avr/pic hybrids.
[15:52:46] <rue_bed> I heard, technology mashup
[15:52:49] <Lambda-Aurigae> they have an attiny series now that looks like such.
[15:52:54] <Lambda-Aurigae> avr core with pic peripherals.
[15:53:24] <rue_bed> I wonder if the docs are to the low microchip, or the high atmel standards
[15:53:27] <Lambda-Aurigae> I've grown rather fond of pic32 chips lately though.
[15:53:37] <rue_bed> why, arm.
[15:53:42] <Lambda-Aurigae> they look like new style avr docs.
[15:53:54] <Lambda-Aurigae> well, I was able to get pic32mx270f256b chips as free samples.
[15:54:11] <rue_bed> my experience is that microchips free samples arn't worth it
[15:54:14] <Lambda-Aurigae> complete with hardware usb, 256K flash, 64K sram, and a dip28 package.
[15:54:20] <rue_bed> I'd rather buy atmel chips
[15:54:21] <rue_bed> ~
[15:54:29] <Lambda-Aurigae> I've always had good luck with microchip free samples.
[15:54:37] <Lambda-Aurigae> and atmel samples.
[15:54:54] <rue_bed> I could never get atmel samples, prolly cause of being in candada
[15:54:58] <rue_bed> :)
[15:55:06] <Lambda-Aurigae> and freescale and allegro-micro and dallas/maxim
[15:55:44] <rue_bed> the chips microchip sent me were not usefull, partly cause of the $200+ programmer they required me to have, and partly cause of the c compiler they wanted me to pay for
[15:56:00] <rue_bed> I'm a freaking hobbyist, I cant shell out 100's on this stuff
[15:56:04] <Lambda-Aurigae> I have a microchip pickit3 programmer
[15:56:18] <rue_bed> how much that cost?
[15:56:29] <Lambda-Aurigae> and I was able to compile the pic32 version of gcc for myself without the limitations.
[15:56:36] <Lambda-Aurigae> 25 dollars on sale at digikey
[15:56:49] <specing> < rue_bed> I'm a freaking hobbyist, I cant shell out 100's on this stuff
[15:56:51] <specing> yes you can
[15:56:51] <rue_bed> I switched to avr when pic came out with the A series that was completely non-backwards compatible with the old chips
[15:57:08] <specing> my investment into lithium-ion already exceeded $100
[15:57:10] <Lambda-Aurigae> yeah...they did all kinds of stupid stuff with each new series of chips.
[15:57:15] <Lambda-Aurigae> the pic32 is not a pic core though.
[15:57:16] <rue_bed> the only open source programmer couldn't program them
[15:57:20] <Lambda-Aurigae> it's a MIPS core.
[15:57:32] <Lambda-Aurigae> almost like an ARM only different.
[15:57:44] <rue_bed> yea, the pic core that was /4 crystal freq
[15:57:54] <Lambda-Aurigae> yup.
[15:57:56] <Lambda-Aurigae> still is.
[15:57:58] <rue_bed> which made avr automatically 4xfaster
[15:58:00] <Lambda-Aurigae> the 8bit pic core.
[15:58:11] <Lambda-Aurigae> 10mips max with avr being 20mips now.
[15:58:18] <rue_bed> done with pic a long time ago
[15:58:56] <Lambda-Aurigae> I also recently grabbed some pic16f1455 and 1459 chips....nice little chips that do hardware usb 2.0 without a crystal.
[15:59:04] <Lambda-Aurigae> I use them as usb-serial adapters.
[15:59:34] <Lambda-Aurigae> overall I still prefer AVR.
[16:00:36] <rue_bed> I have no need of usb native devices, putting a $1 usb-serial adapter on my projects that need usb is just fine
[16:01:11] <rue_bed> tho I should standardsize a protocol for asking what they are
[16:01:44] <rue_bed> I wonder if the usb product string is reflashable on those converters
[16:02:05] <rue_bed> meh, not an issue
[16:02:33] <Lambda-Aurigae> depends on the converter.
[16:02:41] <rue_bed> my leading issue is measuring current draw on a dc servo motor
[16:02:48] <Lambda-Aurigae> the microchip ones are just pic chips after all.
[16:02:54] <rue_bed> pl2303 for the most part I think
[16:04:03] <Lambda-Aurigae> someone managed to figure out what pic it was and reprogram it.
[16:04:14] <rue_bed> ?
[16:04:24] <rue_bed> pl2303!?
[16:05:33] <Lambda-Aurigae> pl2303 is not microchip.
[16:05:41] <Lambda-Aurigae> prolific.
[16:05:51] <rue_bed> it would be interesting to have a database of chips by pinout, you tell it what the power, maybe clock, etc pins are that you know of, and it would list possable chips it could be
[16:05:59] <Lambda-Aurigae> mcp2200 is the microchip one.
[16:06:16] <rue_bed> no mcp2200 on cheap chineese converters
[16:06:53] <Lambda-Aurigae> http://hackaday.com/2011/01/18/mcp2200-usb-to-serial-chip-hacked-to-do-your-bidding/
[16:07:03] <Lambda-Aurigae> yeah.
[16:07:11] <Lambda-Aurigae> the pl2303 is cheaper.
[16:07:48] <rue_bed> cp2102 pl2303 ch340 cp2104 FT232
[16:08:20] <rue_bed> is 99% of them
[16:09:50] <rue_bed> https://www.aliexpress.com/item/diy-kit-Intelligent-tracking-the-car-kit-D2-1-patrol-car-parts-Electronic-manufacture-DIY-smart/32677162124.html
[16:09:59] <rue_bed> I cant decide if thats a deal or not
[16:10:05] <Lambda-Aurigae> I would be careful with any cheap chinese ft chips.
[16:10:16] <rue_bed> oh yea, I'v had some fun
[16:10:19] <Lambda-Aurigae> they have a tendency to be disabled by rogue firmware updates.
[16:10:33] <rue_bed> like when they ALL recieved the data sent to one of them!
[16:10:44] <Lambda-Aurigae> hehe.
[16:10:48] <rue_bed> I dont think it was a driver issue, but.. HOW!?!?!
[16:10:55] <Lambda-Aurigae> that car looks like what rat-shack sells for 49.95....
[16:10:56] <rue_bed> debugging that was fun
[16:11:05] <rue_bed> prolly is
[16:11:36] <rue_bed> dont know if there is a pinout-compatible microcontroller for the lm393
[16:14:44] <rue_bed> hahah, I think aliexpress was asking people for product photos because the sellers dont have any good ones!
[16:15:45] <rue_bed> its not even badweather and the neighbour cant get any traction on their driveway
[16:16:58] <rue_bed> lunch...
[16:22:56] <rue_house> https://www.aliexpress.com/item/DC-DC-boost-module-high-voltage-ZVS-capacitor-charging-gun-45-390V-780V-adjustable-regulator/32746745025.html
[16:23:05] <rue_house> I bought one of those, and one of the output caps was backwards
[16:23:06] <rue_house> :)
[16:23:15] <rue_house> KABLAM
[16:23:17] <rue_house> !???!?!?!?!?!?!?!
[16:23:35] <rue_house> china...
[16:24:51] <Lambda-Aurigae> fun.
[16:25:28] <rue_house> I need a +-50V supply for a oscilloscope preamp
[16:26:27] <rue_house> I suppose a 1:5 pushpull would work fine in a regulated loop
[16:26:38] <rue_house> and its no current, so I suppose I could wind my own...
[16:27:33] <rue_house> https://www.aliexpress.com/item/XL6009-Boost-Converter-Step-Up-Adjustable-15W-5-32V-to-5-50V-DC-DC-Power-Supply/32625458625.html
[16:27:37] <rue_house> 50V out? hmmmmm
[16:28:00] <rue_house> 5Y0
[16:43:28] <rue_house> 5Y makes no sense, it would come out to like 800000 V
[17:16:00] <twnqx> that's not the cap type...
[17:16:06] <twnqx> that's an electrolytic
[20:17:33] <rue_shop3> twnqx, one of the codes on the top is the votlage rating,
[20:18:19] <rue_shop3> in that case, its not the 5Y0, its the H, which is short for 1H, which is 50V
[20:18:44] <rue_shop3> so, they put a 50V cap on a power supply rated to output a max of 50V
[20:18:56] <Lambda-Aurigae> kinky.
[20:19:07] <Lambda-Aurigae> so, they sold you a bomb!
[20:19:10] <rue_shop3> its not what _I_ would do
[20:19:21] <Lambda-Aurigae> I would overrate by at least 50%
[20:19:34] <rue_shop3> no, I didn't buy it yet, I wanted to know what the rating was to know if It could really output 50V
[20:19:38] <twnqx> it will just lose half of the capacity :P
[20:19:40] <rue_shop3> yea, I use 50% too
[20:19:56] <twnqx> for me it depends on cap type
[20:20:13] <Lambda-Aurigae> that 50V cap also depends on where it is in the circuit.
[20:20:13] <twnqx> i'm willing to use 6V ceramics as bypass in 5V systems :P
[20:20:30] <Lambda-Aurigae> it could be on the lower voltage side where it only gets 15V or so.
[20:20:59] <twnqx> well, the typically 6.3V
[21:44:05] <Casper> Does anyone knows of a good karaoke program that handle mp3+cdg that you can load 30k+ songs and have a search feature ?