#avr | Logs for 2015-10-03

Back
[02:33:51] <antto> LeoNerd, i think DS1052E
[07:10:08] <MarkX> hi
[07:11:38] <MarkX> i wanted to use https://github.com/adafruit/Adafruit_TCS34725 this driver with AVR but by the looks of it, it's meant to use wire.h and arduino libs. is it possible i can use this with AVR as is? or would i be better off making my own routines for my i2c component?
[07:31:10] <Lambda_Aurigae> MarkX, if you have to ask, well,,,,
[07:31:30] <twnqx`> i'd never use arduino, regardless how available it is
[07:31:37] <Lambda_Aurigae> arduino stuff is so tied up in knots as to be a royal pain to pull one part out to use it for anything separately.
[07:31:53] <twnqx`> you'd end up rewriting good parts of it indeed
[07:31:55] <Lambda_Aurigae> and arduino libs are so huge and horrid, it's just horrid.
[07:32:34] <Lambda_Aurigae> http://pastebin.com/dSRSxgax
[07:32:38] <Lambda_Aurigae> just one example.
[07:34:06] <Lambda_Aurigae> http://homepage.hispeed.ch/peterfleury/avr-software.html
[07:34:12] <Lambda_Aurigae> use the i2c master library here.
[07:34:15] <Lambda_Aurigae> it's old but it just works.
[07:40:12] <RikusW> His bootloader's main is 450 lines long !...
[07:40:30] <RikusW> goes a bit against my coding conventions, 450 is excessive
[07:41:46] <twnqx`> wrap them, multiple statements per line
[07:41:51] <twnqx`> you can get it down to 1 line!
[07:42:14] <RikusW> break it down into separate functions...
[07:43:08] <RikusW> In asm I had one for receiving the packet, and another for the switch(command) etc
[07:55:21] <MarkX> thanks Lambda_Aurigae i'll take a look
[08:11:25] <averowsky> Hi again. From 2 days Im trying to get data from my sensor mpu6050 using i2c. Because I have very little expierence, I tried to use libs which are available on the internet
[08:12:27] <averowsky> I would like to use something which works, then I would like to deep in and learn how it works
[08:13:20] <averowsky> I would like to ask if someone use code to read from mpu6050 which is avaibale on this site http://davidegironi.blogspot.com/2013/02/avr-atmega-mpu6050-gyroscope-and.html#.Vg_ODnVSukp
[08:13:21] <averowsky> ?
[08:14:47] <averowsky> for &ax, &ay, &az, &gx, &gy, &gz I get the same values and they doesnt change
[08:14:59] <averowsky> -719.14063^J3
[08:49:32] <Bushman> ave
[08:50:28] <Bushman> what could be an elegant way of detecting that an interrupt has not ocured in some time, say 20ms ?
[08:56:32] <Bushman> hmm...
[08:59:35] <Bushman> i'll be thinking out loud, someone correct me if i'm wrong cause i've never done this before...
[08:59:53] <Bushman> an interrupt flag is set when the interrupt triggers...
[09:00:09] <Bushman> so i have indication in the main loop...
[09:01:19] <Bushman> maybe i could somehow estaminate time my main loop is executing and use that to check if the flag is rised in less than n amount of loops
[09:01:56] <Bushman> or ignore loop time alltogether and use some arbitrary number of loops.. hmm.
[09:38:14] <antto> inkjetunito DS1052E i think
[09:40:35] <twnqx`> inkjetduino hm
[10:36:57] <LeoNerd> The DS1052E is the absolute cheapest-of-the-cheap, and I'm not sure it's worth it these days. The DS1054Z has much nicer specs (same 50MHz bw, 4 rather than 2 channels, 800x480 screen instead of 320); for only a little more cost
[10:51:06] <inkjetunito> just get the damn oscilloscope shield
[10:51:27] <inkjetunito> so that you can have a scope on the avr
[10:58:40] <antto> yeah, it's the cheapest one
[10:59:06] <antto> but, tbh, if the one you say works in the same way.. it would still be silly
[10:59:24] <antto> if it calculates the freq/pw/whatever from the screen buffer
[17:00:29] <hetii> Hi
[17:01:11] <hetii> I have odd issue with kicad: http://postimg.org/image/47oa8hxt9/full/ in print preview, all pads gone. Ask on #kicad but they have no clue...
[17:07:04] <Lambda_Aurigae> try the kicad website maybe?
[17:09:29] <hetii> maybe its some idea :)
[17:12:22] <Lambda_Aurigae> I use eagle myself...unless it's a quick draw then I use a sharpie on the copper.
[17:25:23] <hetii> Its a bit odd thing cause, when I use print from default pdf browser then there is no "rendering tab" in window that show up
[17:25:41] <hetii> when I use othe graphic software then I got this tab: http://s22.postimg.org/f863ro2up/zrzut_ekranu_2.png
[17:28:16] <Lambda_Aurigae> well, there's your problem. It's in some dang foreign language!
[17:30:06] <Lambda_Aurigae> yeah, no clue. I have kicad installed here but never really used it other than to play around.
[17:50:10] <hetii> Lambda_Aurigae: I suppose there is issue maybe not in kicad but the soft that render this graphic.
[17:50:23] <hetii> when use bitmap mode of rendering then all is fine
[17:51:38] <Bushman> this two parts of code are virtually identical in principle...
[17:51:40] <Bushman> http://pastebin.com/y9X1pAEE
[17:51:42] <Bushman> do you guys thing it's worth to make it into a function?
[17:52:41] <Lambda_Aurigae> Bushman, whatever works for your project.
[17:53:02] <Bushman> this works.
[17:53:52] <Bushman> but for now i'm using only 2 inputs on INT0/1
[17:54:07] <Bushman> tho there is a big chance i'll have to use PCINT too
[17:54:14] <Bushman> so that would make it 3 channels
[17:54:32] <Bushman> which would require another block like this.
[17:54:44] <Bushman> for exactly the same purpose
[17:55:26] <hetii> Btw if someone need goot preamp for microphone you can use my board https://bitbucket.org/hetii/micboost based on this article: http://mcs.uwsuper.edu/sb/Projects/MiniPC/mic.html
[17:55:36] <hetii> i`m very happy with the way how it works
[17:56:01] <hetii> *good
[18:03:32] <osteri> i've noticed that different pdf viewers render images very differently
[18:04:01] <Lambda_Aurigae> yup.
[18:04:24] <Lambda_Aurigae> and different print drivers render them differently too from the same viewer.
[18:07:40] <Bushman> that's why i like to print PDFs with bitmap render :P
[18:08:21] <Bushman> cause postscript has proven to be able to fsk up any otherwise good pdf :P
[18:08:51] <Lambda_Aurigae> even though pdf is postscript with a binary wrapper.
[18:10:45] <Lambda_Aurigae> I deal with such things daily...work on copiers and printers, mostly making them print and scan and all that junk.
[18:13:19] <Bushman> ;]
[18:13:58] <Lambda_Aurigae> I'm a Xerox Analyst so I get lots of practice fixing fucked up printing.
[18:15:02] <hetii> Nice :) when I have in future some issue with xerox printer, now I know with person to ask :)
[18:15:39] <hetii> for you luck I use printers maybe few time in year :)
[18:18:11] <hetii> for me most iritating issue with printers are when they report that something is wrong with cardridge and even when you replace it for new unit, then you have still the same shitty error.
[18:18:41] <hetii> at the end you need to go to some russia site and find a hack to unblock it...
[18:24:12] <Lambda_Aurigae> or have the manuals.
[18:26:14] <hetii> maybe, no clue, but you know many vendor block printers even when they are still fully working machine.
[18:26:29] <hetii> just becouse some period of time expired or you print to much.
[18:26:43] <Lambda_Aurigae> yup.
[18:27:00] <Lambda_Aurigae> xerox doesn't do that.
[18:27:08] <Lambda_Aurigae> they do have chips in the toner cartridges though.
[18:27:17] <Lambda_Aurigae> they don't run the toner out completely.
[18:27:24] <Lambda_Aurigae> there is always some left when it says empty.
[18:27:26] <Lambda_Aurigae> shaking does no good.
[18:28:07] <Lambda_Aurigae> the reason for this is if you run toner out completely it will start dumping developer out and can damage the machine,,or at least need the developer replaced.
[18:31:48] <hetii> Interesting, don`t know that before
[18:32:23] <Lambda_Aurigae> with hp crap it doesn't matter usually because when you replace the toner you are replacing toner, developer, and drum.
[18:32:27] <hetii> one time I had idea to damage some laser printer and try print directly on pcb
[18:32:35] <Lambda_Aurigae> with most xerox devices you replace just the toner.
[18:32:43] <Lambda_Aurigae> dramatically drops cost of operation.
[18:32:51] <Lambda_Aurigae> have done that.
[18:33:04] <Lambda_Aurigae> blew several power supplies before I got it right.
[18:33:25] <hetii> realy ? and how your final result looks like ?
[18:33:30] <Lambda_Aurigae> smeared.
[18:33:41] <Lambda_Aurigae> never was able to get the fuser to pull the board smoothly.
[18:33:43] <hetii> yep, I read about that issue
[18:33:59] <Lambda_Aurigae> best result was doing it with a carrier board...sheet of cardboard the same thickness as the PCB.
[18:34:10] <hetii> hmm but why you destroy power supply in that process ?:)
[18:34:21] <Lambda_Aurigae> I cut a hole in the middle and taped the small pcb in the hole.
[18:34:41] <Lambda_Aurigae> shorting out the high voltage when the drum touches the copper.
[18:35:16] <Lambda_Aurigae> 600V or so on that drum.
[18:35:58] <hetii> ohh I see ;)
[18:36:45] <hetii> After reading few articles, see results and mess around it I decide to drop that idea :)
[18:36:50] <hetii> but at least you try it :)
[18:37:50] <Lambda_Aurigae> I have a pretty good supply of HP laserjet 5si and 8100 series printers.
[18:38:23] <Lambda_Aurigae> which can be modded for a fairly straight paper path from the feed in to the drum to the fuser and out.
[18:39:25] <hetii> I wonder I its possible to use laser like from this device: https://youtu.be/MQ5Kwn85U28?t=10s
[18:40:03] <Lambda_Aurigae> for what exactly?
[18:40:07] <hetii> to put image on pcb with positive-20
[18:40:11] <Lambda_Aurigae> that's a very low powered laser.
[18:40:30] <Lambda_Aurigae> don't you need UV for that?
[18:40:38] <hetii> hmm
[18:40:47] <hetii> I guess yes
[18:40:56] <hetii> never use this way of making pcb
[18:41:00] <hetii> just read about it
[18:41:06] <Lambda_Aurigae> best to use a UV light bath.
[18:41:15] <Lambda_Aurigae> light box, light bath, whatever.
[18:41:29] <Lambda_Aurigae> I've used that method and toner transfer both.
[18:41:44] <Lambda_Aurigae> with the right gear I can get 10mil traces and 10mil spacing with toner transfer.
[18:41:46] <hetii> But I saw in some movie that someone use CNC machine and laser instead
[18:42:05] <Lambda_Aurigae> have seen them done with cnc mill.
[18:42:08] <hetii> it was here: https://www.youtube.com/watch?v=4SNkzoOvoD8
[18:42:17] <Lambda_Aurigae> not sure how well burning it with a laser would work though.
[18:42:36] <hetii> but its not burning as far as I know.
[18:42:51] <Lambda_Aurigae> oh...it's just burning the mask off.
[18:42:54] <Lambda_Aurigae> then you etch it.
[18:44:05] <hetii> yep
[18:44:56] <Lambda_Aurigae> I would use the uv cure stuff and cure it with a uv laser if I had the money for such gear.
[18:47:02] <hetii> uv cure ?
[18:47:13] <Lambda_Aurigae> uv cure paint.
[18:47:44] <Lambda_Aurigae> it's the older method of making PCBs.
[18:48:01] <Lambda_Aurigae> you buy a board with this paint on it or you paint your own boards...let it dry...
[18:48:33] <hetii> hmm but its something like positive-20 ?
[18:48:34] <Lambda_Aurigae> then expose it to UV light....with a transparency sheet between the light and the board.
[18:48:37] <Lambda_Aurigae> yes.
[18:49:39] <hetii> ahh this day you can even order pcb that have it already.
[18:49:54] <Lambda_Aurigae> I ordered those 20 years ago or more.
[18:50:30] <hetii> I read that there are a lot of steps and chemical stuff till you get final board
[18:50:40] <hetii> thats why it always stop me to try this method
[18:50:40] <Lambda_Aurigae> I've even used silkscreen process emulsion for it.
[18:51:31] <Lambda_Aurigae> you take a silkscreen and coat it with this stuff...then expose it to UV light..wherever the light hits it cures...then you wash the uncured out with light solvent.
[18:51:38] <Lambda_Aurigae> can do the same with PCB.
[18:53:33] <hetii> in the past when most devices use THT was easy to make boards. At the beginin I just use nail polish and draw myself wires on pcb
[18:53:47] <Lambda_Aurigae> sharpie magic marker
[18:53:54] <Lambda_Aurigae> and FeCl to etch.
[18:54:02] <Lambda_Aurigae> cheap kit from radio shack way back when.
[18:54:27] <hetii> yep :)
[18:55:31] <hetii> maybe in near future we will just use 3d printer and instead etching it just print wires
[18:55:40] <Lambda_Aurigae> already being done.
[18:55:43] <Lambda_Aurigae> conductive ink.
[18:55:51] <Lambda_Aurigae> I have half a dozen conductive ink pens.
[18:56:01] <Lambda_Aurigae> use them for repairing damaged traces on boards.
[18:56:19] <Lambda_Aurigae> have used one in an old HP pen plotter.
[18:56:31] <hetii> hmm
[18:56:52] <hetii> and what about resistance and wire size when you use that pen ?
[18:56:59] <Lambda_Aurigae> recently saw a reprap with conductive ink too.
[18:57:19] <Lambda_Aurigae> it's silver impregnated ink so the resistance is low for the most part.
[18:57:27] <Lambda_Aurigae> trace size, however, is bear-whiz.
[19:01:48] <hetii> I can image that
[19:02:16] <Lambda_Aurigae> I want to get another pen plotter though.
[19:02:23] <hetii> ehh so for my hobby purpose I will still use termotransfer :)
[19:02:26] <Lambda_Aurigae> would be great for drawing on the copper with a regular marker.
[19:02:35] <Lambda_Aurigae> I do too mostly.
[19:02:51] <Lambda_Aurigae> bought a big pack of press-n-peel blue years ago and still have half of it.
[19:02:56] <Lambda_Aurigae> was like 250 sheets.
[19:03:08] <hetii> What about using LCD panel but put UV lamps instead regular ?
[19:03:25] <Lambda_Aurigae> dunno...not sure how good it would be at blocking UV.
[19:05:41] <hetii> just next idea to try ;)
[19:06:06] <hetii> but the dark side of LCD was always not good:)
[19:08:37] <hetii> hmm at 23:45 I put my board to etching and still in process
[19:08:50] <Lambda_Aurigae> have an agitator?
[19:08:58] <hetii> no
[19:09:18] <Lambda_Aurigae> my etching tank is vertical, 12 inches long, 12 inches tall, 1 inch wide.
[19:09:31] <Lambda_Aurigae> in the bottom of the tank is a tube with holes in it..
[19:10:00] <Lambda_Aurigae> I pump warm air through the tube and the bubbles flow up over the board, causing agitation.
[19:10:08] <Lambda_Aurigae> cut etching time by 80% or so.
[19:11:11] <Lambda_Aurigae> warming the etchant and keeping it moving makes it work much faster.
[19:11:45] <hetii> hmm nice idea, I saw many tank that rotate itself or use heat pipe to speed process but never heard abour using warm air
[19:12:56] <Lambda_Aurigae> have a little butane torch that heats a heatsink and the heatsink has a copper pipe woven through it.
[19:13:16] <Lambda_Aurigae> I use a fishtank air pump to pump air through that and pipe it into the etch tank bubble line.
[19:15:09] <hetii> I have no space for such lab but when have it, then some days with use your idea with that warm bubbles
[19:15:24] <hetii> just maybe without butane torch
[19:15:30] <Lambda_Aurigae> you can use a fishtank heater to heat the etchant.
[19:15:52] <hetii> yep, the easy way
[19:15:54] <Lambda_Aurigae> and do something to keep it moving..just slowly slosh it back and forth.
[19:16:30] <hetii> hmm but though that the bubbles do the job and don`t need that additional moving ?
[19:16:32] <Lambda_Aurigae> put a toothpick under the middle and just tip it side to side slowly.
[19:16:41] <Lambda_Aurigae> yes..the bubbles move it in my setup.
[19:16:45] <Lambda_Aurigae> was thinking for yours for now.
[19:17:26] <hetii> i see
[19:19:11] <Lambda_Aurigae> just shaking it a little every few seconds would help even.
[19:19:45] <hetii> My board are almost done, guess something around 15m
[19:20:04] <hetii> and be fine, at least we could chat a while :)
[19:20:22] * apo__ shakes Lambda_Aurigae a little every few seconds
[19:20:34] <Lambda_Aurigae> apo__, that's what my palsy is for...[:
[19:21:09] <apo__> Note to self, subject doesn't seem to get agitated. Use more shaking next time.
[19:21:46] * Lambda_Aurigae is self-agitating.
[19:35:39] <hetii> Ok time for me, thx for chat :)
[19:37:49] <Lambda_Aurigae> party hard.