#avr | Logs for 2016-02-19

Back
[02:48:28] <julius> morning
[02:49:40] <julius> WormFood, free tv with a self programmed smart card? thats cool
[03:59:09] <WormFood> julius, I used to write my own software for it.
[03:59:30] <WormFood> I was very well respected within the satellite hacking community.
[04:56:48] <^Richard> folks, what software/hardware do you use for production ISP programming? any recommendations? single unit at a time is probably fine
[04:59:40] <Jartza> I brought usbasp to factory with avrdude.exe and a bat to do the job :)
[04:59:43] <Jartza> they were quite happy with it
[05:00:05] <Jartza> they also told Linux is OK, if you bring your own machine
[05:00:25] <Jartza> but if you need big amount of chips programmed, atmel can also deliver chips with firmware programmed at factory
[05:02:05] <cehteh> someone i know tried to mount http://www.hobbyking.com/hobbyking/store/__27195__Atmel_Atmega_Socket_Firmware_Flashing_Tool.html in a CNC ...
[05:02:16] <cehteh> but set the Z axis wrong :D
[05:02:47] <cehteh> when done right, that might be useful
[05:07:11] <WormFood> The factory making your boards, should be able to program them for you too.
[05:07:27] <WormFood> Of course, if you trust them with your code.
[05:13:24] <^Richard> aye Jartza, that's certainly one option lol
[05:13:36] <^Richard> we'd prefer to keep programming in-house WormFood, at least for now.
[05:14:05] <^Richard> obviously can do with JTAGICE but it's a tad fiddly for technicians. been looking at stuff like http://uk.farnell.com/equinox-technologies/fs2009usb-avr-jtag/programmer-isp-fs2009usb-avrjtag/dp/2212007
[05:15:30] <^Richard> just wondering if there were any go-to industry standard solutions out there, or if it's all fairly adhoc.
[05:16:06] <^Richard> haven't had to worry about it much with microchip kit since all I need to do is buy a PM3, lol
[05:20:18] <Jartza> I once thought about making an avr programmer from avr (yo dawg!) :)
[05:20:42] <Jartza> just connect programmer and power, press button and it'll show with leds the status of program & verify
[05:21:02] <Jartza> and new firmware could be downloaded to programmer using uart
[05:21:34] <Jartza> but also this .bat file was just good for manufacturing. it'll show in the end either "FAIL" or "SUCCESS" and the possible reason for failing
[05:24:35] <julius> cehteh, hi. you there?
[05:24:39] <cehteh> yes
[05:25:34] <julius> got a program here written by a german guy for watering your plants, theres this one function print_csv - which writes some information out over serial. but it also contains the function for watering the plants....could you take a look?
[05:26:12] <cehteh> ^Richard: how many devices do you want to program?, i mean something like the tool i've shown above, order avr's on reel, preprogram them with some standalone programmer like Jartza saied .. ship reel to fab ...
[05:26:28] <^Richard> probably batches of 50-100.
[05:26:44] <cehteh> oh .. i thought 1000's or 10000'
[05:26:58] <cehteh> thats really not much
[05:27:02] <^Richard> exactly :P
[05:27:09] <julius> ^Richard, dont you have students?
[05:27:15] <^Richard> bulk production would be a different matter.
[05:27:36] <cehteh> julius: just pastebin it ,, but for what shall i look?
[05:28:00] <^Richard> not presently :P mostly concerned about getting something that's fairly idiotproof as i say. push button with traffic light success indication.
[05:28:09] <julius> im not really sure why the "automated watering" function called: autogiess() is in the information output function http://codepad.org/vU4zje8G
[05:28:37] <^Richard> the Equinox programmer i listed above seems reasonable
[05:28:43] <cehteh> ^Richard: there are plenty standalone programmers where you load the program onto some flash on board, and then push button to flash it to the client
[05:28:55] <^Richard> but obviously nothing like hands-on.
[05:29:17] <^Richard> yeah absolutely cehteh. just looking for someone that's had hands-on experience with a similar unit for recommendations.
[05:29:22] <cehteh> some cheap hacky things (hey arduino (pro, nano, whatever)) with SD-Card or external flash will already do
[05:29:37] <WormFood> ^Richard, depending on what interface you have (like USB), it may be worthwhile for them to load the bootloader for you, to make it easier to load your own firmware then
[05:29:40] <WormFood> Just an idea
[05:30:05] <cehteh> once only bootloader .. or activated by some pad/jumper
[05:30:07] <^Richard> aye, that's another option alright, although i don't know if you can set the fuse/lock bits via bootloader (never tried!)
[05:30:18] <cehteh> no wont work
[05:30:27] <^Richard> that was kinda my assumption
[05:30:35] <cehteh> but you have to flash the bootloader first anyways
[05:30:37] <julius> cehteh, can i open a private window to you? just to give some infos about the code in german
[05:30:50] <cehteh> ok
[05:30:56] <^Richard> wonder if you can internally reprogram with the lock bits set
[05:31:35] <cehteh> nope
[05:31:43] <cehteh> er yes
[05:31:48] <cehteh> if SPI is enabled
[05:31:55] <cehteh> then the bootloader can reprogram the devince
[05:32:02] <cehteh> but you cant reprogram lock bits
[05:32:07] * ^Richard nods
[05:32:16] <^Richard> if they're set when bootloader goes on it'll be fine then
[05:33:58] <^Richard> going to have a chat with Equinox when their sales guy gets back on Monday and see what they can offer i think
[05:52:22] <Jartza> ^Richard: https://drive.google.com/file/d/0B2dTzW9TMeBxdmZkYlpaVHNHN2s/view
[05:52:31] <Jartza> https://drive.google.com/file/d/0B2dTzW9TMeBxaXBLQzU2REszNDQ/view
[05:52:37] <Jartza> I use that kind of programming adapter
[05:52:55] <Jartza> spring loaded, you just press it against the pads on board (no connector needed on board) and program :)
[05:53:20] <Jartza> the device in picture has 3 avrs, so there's 3 programming "pad areas"
[05:53:50] <Jartza> the adapter has 2 pins for alignment
[05:55:08] <^Richard> looks nice Jartza!
[05:56:35] <Jartza> I use that for all of my AVR boards basically
[05:57:39] <cehteh> how does that align? holes?
[06:02:19] <Jartza> yes, board has holes and pads
[06:02:36] <Jartza> and adapter has that avx 9188 spring loaded contact and pins
[06:02:57] <cehteh> thats clear, i just wondered if you need holes on the board to align it
[06:03:20] <Jartza> not invented by me
[06:03:20] <Jartza> http://www.daniel-spilker.com/blog/2011/04/25/isptouch-for-avr-microcontrollers/
[06:03:23] <Jartza> there
[06:04:11] <Jartza> I just modded mine a tiny bit, because Daniel's version didn't have those alignment pins in 2.54mm raster :)
[06:04:58] <Lambda_Aurigae> nifty little connector...only problem I have with that is it requires two hands.
[06:05:08] <Lambda_Aurigae> saves pins on the board though.
[06:05:16] <Jartza> helps soldering the adapter when you have 2.54mm raster
[06:05:29] <Lambda_Aurigae> I'm heading in the direction of card edge connector these days.
[06:05:32] <Jartza> Lambda_Aurigae: depends of the device. I use that for debugging too :)
[06:07:05] <Jartza> I have implemented a debugging tool which keeps the connector in place
[06:07:09] <Jartza> it did cost about $0.5
[06:07:12] <Jartza> https://drive.google.com/file/d/0B2dTzW9TMeBxZWdPMVpsNGdHVVk/view
[06:07:14] <Jartza> there! :D
[06:07:35] <cehteh> for DIL Tiny's i made a connector to press on the chip by myself .. like the ones for megas i've posted above
[06:08:03] <Jartza> yea, I have clip connectors for dip8, dip14 and soic8
[06:29:27] <Martin90> does anobydoy use ARM eclipse ?
[06:29:45] <Jartza> not really
[06:29:51] <Jartza> I hate eclipse, in many ways
[06:30:49] <Martin90> so what to use for ARM STM32 ?
[06:31:08] <Martin90> I tested system workbench 4 STM32 (based on eclispe) and it sucks too
[06:40:39] <Martin90> and that's it -> people says "do not use eclipse" me: ok, what instead ? and then silence occurs
[06:41:28] <Lambda_Aurigae> vi
[06:41:39] <Lambda_Aurigae> or whatever text editor you prever.
[06:42:06] <Lambda_Aurigae> I use vi, vim, kate, or gedit,,,,depending on my mood,,,,for programming various microcontrollers.
[06:42:22] <Martin90> Lambda_Aurigae: yes it sounds cool but what about compiler, linker hat about headers ?
[06:42:44] <Lambda_Aurigae> well, eclipse isn't a compiler nor does it provide headers.
[06:42:46] <Lambda_Aurigae> so,
[06:43:02] <Lambda_Aurigae> you will need to use the same compiler and headers with any other text editor that you would with eclipse.
[06:43:15] <Martin90> true
[06:43:30] <Lambda_Aurigae> as for stm32, no clue here as I don't use stm32
[06:44:05] <Lambda_Aurigae> mostly avr, some pic32, occasional pic16 or pic18, and once in a while 8052 based ds89c450 chips.
[06:44:19] <Martin90> mhm
[06:44:36] <Lambda_Aurigae> might want to find an stm32 channel and ask there.
[06:44:54] <Martin90> I am looking for a tool that will alow me to nicely link text editor, compiler and other utilities like debuger
[06:45:10] <Lambda_Aurigae> I call it bash
[06:45:26] <Martin90> I am on win
[06:45:32] <Lambda_Aurigae> but, I'm an old csh scripter from way back when.
[06:45:39] <Lambda_Aurigae> you can get bash on winblows
[06:46:40] <Lambda_Aurigae> try notepad++?
[06:46:58] <Martin90> I sue sublime
[06:47:11] <Martin90> but I have no clue how to compile then
[06:47:45] <Lambda_Aurigae> most of the higher end text editors have the ability to call external programs and display the output.
[06:47:50] <Martin90> one file is easy but with dozens of headers it becomes nightmare
[06:47:51] <Lambda_Aurigae> build a makefile and run make.
[06:49:09] <Lambda_Aurigae> that's how most real build systems work after all.
[06:49:24] <Martin90> yes I know
[06:50:44] <Martin90> Lambda_Aurigae: why don't you like eclipse ?
[06:51:08] <Martin90> ..just curious
[06:58:23] <lorenzo> do you know if the compiler optimizes such a statement?
[06:58:29] <lorenzo> for (uint16_t i = 0; i < sizeof(sinetable)/sizeof(uint16_t); i++) {
[06:58:35] <lorenzo> the sizeof()/sizeof() stuff
[06:58:45] <lorenzo> I clearly don't want that to be executed at every loop iteration
[07:00:07] <Caesium> sizeof is resolved by the precompiler into a static
[07:06:20] <Lambda_Aurigae> Martin90, as a text editor, I find it too complicated, and learned many easier to use ones long before eclipse came along.
[07:06:53] <Martin90> ok thanks for opinion ;)
[07:07:12] <Lambda_Aurigae> I also do a lot of work at command prompt on computers without any GUI
[07:07:23] <Lambda_Aurigae> making eclipse totally unusable in those instances.
[07:07:27] <Lambda_Aurigae> where vi or vim works well.
[07:09:20] <Martin90> sure
[07:10:15] <Lambda_Aurigae> or even ed or edlin but I haven't used those in 10 years or so other than showing off.
[07:44:59] <t4nk625> hi
[07:48:49] <t4nk625> I have a problem with my USBasp . It can't be reprogrammed. I hooked it up to arduino isp(Which could program an Atmeg8A breadborded) and tried reporgamming it at 5V. It displayed its signature as 0xFFFFFF and failed to program. The I tried switching to 3.3V and then it displays a signature as 0xFF7F7F. Then I switched the jumper on the USBasp from 5V to 3.3V and it shows its signature as 0x000000. Also at 5V and jumper at 5V the atmega8
[07:49:01] <t4nk625> Is my usbasp bad or am i doing something wrong?
[07:49:21] <Jartza> you need to short the jumper J1
[07:49:30] <Jartza> which might be removed on some boards and non-existing on others
[07:49:35] <t4nk625> I did
[07:49:52] <t4nk625> Sorry i didnt mention it :P
[07:50:06] <t4nk625> But I did it becuase that's how you get it into programming mode
[07:50:29] <t4nk625> Also i soldered pins for jp3 just incase a slower clock might help
[07:50:32] <t4nk625> it doesnt
[07:51:27] <t4nk625> i
[07:51:28] <Jartza> did you try -B for avrdude?
[07:51:31] <Jartza> like -B4
[07:51:37] <t4nk625> i'd guess its power conversion on usbasp
[07:51:39] <t4nk625> nope
[07:51:41] <t4nk625> let me see
[07:52:47] <t4nk625> sadly that changes nothing
[07:54:04] <Jartza> oh sorry yes
[07:54:08] <Jartza> it's not J1, it's J2
[07:54:24] <Jartza> selfprogramming
[07:54:27] <t4nk625> yup
[07:54:32] <t4nk625> j1 is power conversion
[07:54:54] <t4nk625> shorted jp2 and jp3 and jp1 to 5V
[07:54:56] <Jartza> oh
[07:54:59] <t4nk625> nothing helps
[07:55:09] <Jartza> then you have non-standard jumpers
[07:55:15] <Jartza> jp1 is slow clock
[07:55:18] <Jartza> jp2 self programming
[07:55:26] <Jartza> jp3 is target vcc (+5V)
[07:55:36] <t4nk625> yeah it's a chinese clone :P
[07:55:40] <t4nk625> was cheap on ebay
[07:55:48] <t4nk625> But well you get what you pay for
[07:56:20] <Jartza> JP2 basically connects reset to programming pins
[07:56:57] <t4nk625> Reset does work for sure, because after a failed upload it powers on
[07:57:01] <t4nk625> The USBasp
[07:57:13] <t4nk625> by power on i mean a led named G turns on
[07:58:53] <t4nk625> Do you think it is something that could be fixed? I'm worried I might've burned something because of the heat it give off
[07:59:21] <t4nk625> Shouldn't heat up though atmega8a is up to 5.3v or smth
[08:00:13] <Jartza> do you have the usbasp connected to usb while flashing?
[08:00:18] <Jartza> because if you do... don't :)
[08:00:36] <Jartza> power it from ISP connector (and program too)
[08:02:10] <t4nk625> I have it powered from arduino
[08:02:18] <t4nk625> at 5V or 3.3V
[08:02:21] <t4nk625> Mega2560
[08:02:54] <Jartza> well I guess it need 5V
[08:03:21] <Jartza> do you have pic of the board anywhere?
[08:03:52] <t4nk625> I have let me get it
[08:04:16] <t4nk625> http://www.rogerclark.net/wp-content/uploads/2013/05/usbasp.jpg
[08:04:19] <t4nk625> same as this one
[08:05:32] <t4nk625> most generic one there is, as it is a chinese clone
[08:05:59] <t4nk625> http://dangerousprototypes.com/forum/download/file.php?id=11329&mode=view
[08:06:02] <Jartza> I have chinese el-cheapo usbasps too, but they work really nicely after firmware update
[08:06:04] <t4nk625> That s the exact same
[08:06:11] <Jartza> I have those that say LC technology v2.0
[08:06:17] <t4nk625> Same
[08:06:27] <t4nk625> USBASP v2.0 LC Technology
[08:06:40] <Jartza> oh
[08:06:48] <Jartza> mine just required J2 jumper
[08:06:55] <Jartza> and JP1 set to 5V
[08:07:19] <t4nk625> i guess mine's broken then
[08:07:34] <t4nk625> wonder what's wrong
[08:09:26] <Jartza> or wrong connections
[08:11:17] <Jartza> what arduino you have?
[08:11:57] <t4nk625> Arduino Mega 2560
[08:12:09] <t4nk625> Using the ICSP header
[08:12:16] <t4nk625> and pin 10 for reset
[08:12:35] <t4nk625> connections i right for sure because i succesfully flashed an Atmega8A a sec ago
[08:13:56] <Jartza> umm
[08:15:23] <Jartza> iirc 50=miso, 51=mosi, 52=sck, 53=reset
[08:15:50] <t4nk625> they changed it to the built in isp header
[08:16:03] <t4nk625> or if you want you can change a define and get the old way
[08:17:06] <Jartza> still that sounds to me like the connections are wrong
[08:17:24] <Jartza> because it looks like your data is staying high all the time
[08:17:31] <t4nk625> They have to be right
[08:17:43] <t4nk625> Well if i change to 3.3 its low all the time xd
[08:17:51] <Jartza> don't :)
[08:17:59] <Jartza> as usbasp runs on 5V
[08:18:01] <t4nk625> Unless you have to connect to specific ground on the 10pin
[08:18:16] <t4nk625> or the 10 pin is messed up
[08:18:17] <Jartza> yes. only pin 10.
[08:18:23] <t4nk625> OH
[08:18:29] <t4nk625> if that's it
[08:18:29] <Jartza> iirc, pins 8 or 10 are connected to ground
[08:18:37] <Jartza> 4 and 6 are connected to atmega8 uart :)
[08:19:44] <Jartza> http://www.waveshare.com/img/devkit/general/10-pin_ISP_Connector.jpg
[08:19:52] <Jartza> :)
[08:20:09] <Jartza> and remove the jumper from the slow clock
[08:20:19] <Jartza> only JP2 for programming and JP1 set to 5V
[08:20:43] <t4nk625> a sec then let me connect it this way
[08:22:12] <t4nk625> no need to connect anything to nc right?
[08:24:32] <t4nk625> OMG mane
[08:24:35] <t4nk625> you're my savior
[08:24:48] <t4nk625> man*
[08:25:31] <t4nk625> i feel dumb now
[08:26:32] <t4nk625> I'm saving that picture
[08:28:10] <Jartza> great that it worked :)
[08:28:23] <Jartza> now you have good and cheap chinese programmer :)
[08:28:33] <t4nk625> Yeah !
[08:28:40] <t4nk625> And a future reference for the 10 pin
[08:28:41] <t4nk625> :D
[08:28:51] <Jartza> just remember one thing when using it
[08:29:01] <t4nk625> ?
[08:29:10] <Jartza> most AVRs cone from factory with internal clock set to 1MHz
[08:29:46] <Jartza> so, when you're trying to program factory fresh chip, it mostly fails
[08:30:00] <Jartza> because usbasp tries to program with too high speed
[08:30:11] <Jartza> so use -B4 first on avrdude
[08:30:53] <Jartza> then program the fuses (for example, disable the clock div 8 to get 8MHz)
[08:31:18] <Jartza> and then you can program with faster speeds (without -B??)
[08:31:48] <Jartza> I fought with that for long time until someone mentioned the -B :)
[08:32:34] <t4nk625> Alright thanks for the tip!
[08:32:43] <Jartza> np
[08:32:49] <t4nk625> I'm new so it will be quite useful :
[08:33:10] <Jartza> and yeah, NC means "no connection" :)
[08:33:53] <t4nk625> oh
[08:33:56] <t4nk625> what's that for then
[08:34:17] <Jartza> I almost threw those programmers to trashcan because I couldn't program my attinys with it
[08:34:35] <Jartza> then I took one preprogrammed attiny and it worked like a charm
[08:34:40] <LeoNerd> I've never had these problems with my usbasp
[08:34:43] <LeoNerd> Maybe I got lucky?
[08:34:46] <Jartza> but it already had fuses set to 8MHz
[08:35:06] <Jartza> LeoNerd: there are cheap crappy chinese ones and better ones ;)
[08:35:14] <Jartza> you're lucky, I guess
[08:35:20] <LeoNerd> Mmm
[08:35:39] <LeoNerd> I keep meaning to get one of the Pololu ones.. the integrated ISP + UART
[08:35:49] <LeoNerd> Would save me a USB socket :)
[08:36:00] <t4nk625> :P
[08:36:14] <Jartza> anyhow. if it doesn't work, lower the speed with -B (the higher the number, the slower the speed)
[08:36:21] <t4nk625> I bought a 16mhz clock for my atmega :D
[08:36:32] <t4nk625> I will remember that ;)
[08:36:44] <Jartza> t4nk625: you still have to program the fuses for avr to use it
[08:36:58] <Jartza> is it oscillator or crystal?
[08:38:23] <t4nk625> crystal oscillator xd
[08:38:29] <t4nk625> at least that's what it said on ebay
[08:38:50] <Jartza> they say anything on ebay :D
[08:39:02] <Jartza> does it have 2 pins or 4 pins? :D
[08:40:44] <Jartza> crystals have 2 pins, oscillators 4 pins (or 6 if they are special)
[08:41:15] <Jartza> crystal takes 2 pins of yoy avr because it needs help from avr to oscillate
[08:41:30] <LeoNerd> or 3 if they're special in a different way
[08:42:06] <Jartza> whereas oscillator takes vcc, gnd and optional enable, and oscillate on their own, feeding clock output from single pin to single pin of avr
[08:42:25] <t4nk625> 2 pins
[08:42:31] <Jartza> LeoNerd: 3 could also be ceramic resonator with built-in caps
[08:42:35] <LeoNerd> Yup
[08:43:05] <t4nk625> i got a funny story
[08:43:07] <t4nk625> real funny now
[08:43:08] <Jartza> t4nk625: then it's crystal. don't set fuses to "external clock" :)
[08:43:15] <t4nk625> I know why i did connect them wrong
[08:43:46] <t4nk625> you see i bought a 6pin-10pin converter
[08:43:54] <t4nk625> I have to upload a picture of it
[08:45:30] <Jartza> what atmega you're going to use?
[08:46:09] <t4nk625> https://drive.google.com/file/d/1VQ_t8FOXqXT5gBlQ0zHqw82UQcUYsO6NlA/view?usp=sharing
[08:46:11] <t4nk625> who made these
[08:46:12] <t4nk625> really
[08:46:17] <t4nk625> I'm using atmega8a
[08:51:47] <t4nk625> almost the same
[08:51:51] <t4nk625> not quite though
[08:52:38] <Jartza> t4nk625: some avr programmers do have gnd on 4 pins :D
[08:53:06] <Jartza> but only "safe" is pin 10
[08:53:14] <t4nk625> i mean
[08:53:20] <t4nk625> these 2 are mirror iamges
[08:53:21] <t4nk625> images
[08:53:33] <t4nk625> someone soldered the connector upside down
[08:54:23] <t4nk625> Also I have assembled my AVR setup
[08:54:30] <t4nk625> and i have to announce
[08:54:34] <t4nk625> its blinking an led
[09:04:57] <Jartza> yay
[09:19:56] <t4nk625> gtg now
[09:20:00] <t4nk625> thanks jartza!
[09:20:02] <t4nk625> bye!
[10:16:21] <vaskozl> Anyone use you complete me in vim?
[10:17:27] <vaskozl> Anyone use you complete me in vim?
[10:17:46] <vaskozl> Sorry for double send.
[10:17:59] <vaskozl> Basically it uses gcc to compile the code.
[10:18:08] <vaskozl> And I can't figure out how to let it know it should use avr-gcc.
[10:21:23] <cehteh> wrong editor :D
[12:06:28] <Jartza> still only ~200 people likes TagsuTag fb-page
[12:06:57] <cehteh> maybe because no one like fb :D
[12:07:54] <Jartza> maybe
[13:51:30] <julius> hi
[13:51:45] <julius> TCCR0 = CK256; <- is this a valid initialization for the prescalar 256?
[13:54:06] <LeoNerd> What's CK256 ?
[14:14:38] <Casper> julius: most likelly not
[14:37:23] <julius> thats a good question
[14:37:29] <julius> found that in some code
[14:37:35] <julius> but zero documentation
[14:37:52] <julius> there was no #defined for that
[14:41:56] <Casper> maybe it's pseudo code too?
[14:42:07] <Casper> or there was an unpublished header that come with it?
[14:42:12] <julius> no, but doesnt matter. will do something else for now
[14:43:14] <julius> ups, it was in a "enum"
[14:43:38] <julius> and of course, ck256 is defined as 4 there....how could i not have guessed that
[14:44:12] <julius> sometimes i just wanna burn people for their code
[14:49:12] <Casper> what I wish that were made was: define more macro at the libc level... with easy to remember function name... like timer0_setup(); and have the CK1/8/16/64/128...
[14:57:19] <LeoNerd> I suspect most people end up building little libraries
[14:57:25] <LeoNerd> I have quite the growing collection
[14:57:39] <LeoNerd> timer0_setup(TIMER8_MODE_NORMAL, TIMER8_PRESCALE_256);
[15:06:12] <Casper> there is also lots of not known macro defined everywhere that nobody is aware of
[15:06:43] <Casper> you know what's missing in the gcc optimisation stuff?
[15:07:22] <Casper> a block that say: "look, all of those instructions can be executed in any order. Optimise them the best you can"
[15:07:38] <julius> in this picture, theres a capacitance to frequency conversation happening? the big green rectangular shapes are the two plates of a capacitor https://www.mikrocontroller.net/attachment/71741/bodenfeuchte.png
[15:08:04] <julius> LeoNerd, that looks like good code
[15:08:29] <Casper> julius: look like it
[15:08:47] <julius> good
[15:09:45] <julius> crap, again im missing my serial to usb converter :(
[15:10:54] <julius> well, at least this time 1 was a quantity i rarely entered in my second china order
[15:10:55] <LeoNerd> I have about 4 of those
[15:11:58] <julius> do they do all the same?
[15:13:12] <LeoNerd> Well, they all do USB-UART... there's variations on a theme. I have a 6-pin FTDI FT232, a larger FT232 with all the handshaking pins broken out, a PL2303, an CP2102
[15:13:58] <julius> got the cp2102 in my first order
[15:14:01] <julius> works
[15:15:07] <LeoNerd> Oh, and a stack of PL2303SAs that I put on my latest board
[15:15:09] <LeoNerd> They're fun :)
[15:15:19] <LeoNerd> SOIC8 sized USB-UART bridge
[15:16:38] <julius> about 1.27mm between the contacts, i hate those
[15:17:05] <julius> just soldered together what was labeled as "big" smd components...looks terrible
[15:18:15] <LeoNerd> I usually do 0603-size...
[15:18:21] <LeoNerd> 1206 looks huuuuuge to me now :)
[15:19:08] <julius> what did you built lately?
[15:19:21] <LeoNerd> Hrm.. not sure I have a picture of it.. one sec
[15:19:37] <LeoNerd> It's a 328P on a board with RTC and microSD socket.. a data logger of sorts
[15:19:50] <julius> what kind of data?
[15:19:52] <LeoNerd> https://twitter.com/cpan_pevans/status/699220177297268737
[15:20:07] <LeoNerd> Little PL2303SA down the bottom left corner
[15:20:20] <LeoNerd> I would have done more of the board in SMT, but these are the parts I happened to have in at the time
[15:20:45] <LeoNerd> Ohyeah and the SD card is upside down.. oops. Easy mistake ;)
[15:21:58] <julius> did you order the board itself, i mean the plane board without the components or is that made at home?
[15:22:13] <LeoNerd> Oh that's ordered in... ragworm.eu
[15:22:41] <LeoNerd> I don't bother making boards, I get them ordered in. Then I get plated throughholes and soldermask and silkscreen printing... all fun things you really can't do DIY
[15:23:17] <julius> for small numbers thats probably wise
[15:23:31] <LeoNerd> I've just ordered another round of 5.
[15:23:40] <LeoNerd> Well, hopefully with the SD card up the right way this time :)
[15:23:45] <julius> :)
[17:40:13] <julius> what do you use for motor control, phase correct or phase and frequency correct pwm?
[22:23:02] <rue_house> PL2303, an CP2102
[22:23:09] <rue_house> one of those two has a broken buffer
[22:23:24] <rue_house> if you push data at it too fast it will drop characters