#avr | Logs for 2014-12-29

Back
[04:29:28] <hypermagic> hi guys can you help me about adding +3V to my microcontroller to make it work ? also how crystal work ? i was thinking about adding a retina scanner to my project
[04:39:32] <Jartza> adding +3V?
[04:39:44] <Jartza> what's the operating voltage now
[04:59:29] <newio> from adding 3 volts along to a retina scanner is quite a knowledge leap...
[05:04:27] <x29a> maybe there is an i2c retina scanner? ;)
[05:16:57] <newio> still a leap...
[05:29:57] <Jartza> if one is ready to take huge leaps at once, why not
[05:30:13] <Jartza> adding 3V to understanding how crystal work to retina scanner.
[05:39:37] <Jartza> all possible in a day!
[05:42:45] <hypermagic> :)
[05:45:04] <Jartza> learning is always good
[05:45:34] <Jartza> but let's start from beginning, what's the current operating voltage
[05:45:57] <hypermagic> i was not being serious
[05:48:14] <Jartza> :(
[05:48:20] <Jartza> why not
[05:48:28] <Jartza> I like the idea of retina scanner
[06:02:02] <Lambda_Aurigae> retina scanners rock.
[06:02:13] <Lambda_Aurigae> but they do require quite a bit of processor behind them.
[06:03:13] <Lambda_Aurigae> and a homebrew retina scanner would be dangerous in my opinion.
[06:10:41] <Jartza> Lambda_Aurigae: you can always add a warning. "Do not look into the laser with the remaining eye"
[06:10:55] <Lambda_Aurigae> true.
[06:40:08] <hypermagic> i think retina scanner can use an ir led and a ccd.
[06:40:31] <hypermagic> (or more ccds)
[06:45:13] <Lambda_Aurigae> just have to get a photo of the retina basically.
[06:45:33] <Lambda_Aurigae> then you have to do pattern matching of the photo against one or more on file.
[09:54:04] <Daghdha_> I am looking for these or similar, anyone have any experience with them? http://intelliprobe.amplifymm.com/products/pc/ansi/usb/ip500-330-usb-universal-optical-probe/ And know a source to get them? I need a lot, preferably Yesterday if you know what i mean :)
[09:59:29] <Tom_itx> seems they have the market on them
[09:59:31] <Tom_itx> http://www.instrumentsystems.com/products/general-accessories/eop-optical-probes/
[10:01:54] <Tom_itx> http://www.aliexpress.com/wholesale?SearchText=universal+optical+probe&catId=0&initiative_id=SB_20141229073951
[10:02:36] <Tachyon`> would an AVR running at 5v read a 3.3v serial rx as a 1?
[10:02:46] <Tom_itx> probably
[10:02:55] <Tachyon`> ah, good, I only have to level shift one way
[10:02:55] <Tachyon`> thanks
[10:03:00] <Tom_itx> check the data sheet for the logic level
[10:03:05] <Tom_itx> it varies
[10:03:20] <Tom_itx> and it may be marginal and not reliable at speeds
[10:03:23] <Tachyon`> it's a 1284p
[10:03:23] <Tachyon`> ahh
[10:07:14] <Tom_itx> http://www.probeformeters.com/en/?gclid=CJ-oqLfM68ICFQyraQod20cAEg
[10:07:17] <Tom_itx> Daghdha_
[10:07:45] <Tom_itx> they list the honeywell Dolphin 9900 which is similar
[10:08:51] <Tom_itx> http://www.electroind.com/store/product_info.php?products_id=29
[10:08:55] <Tom_itx> possible candidate
[10:19:34] <Daghdha_> price is a bit wow though.. but thanks :)
[10:24:17] <Daghdha_> I passed it to persons looking for them. It's not my dept but my project is getting hit by delays coz of these cables being in short supply everywhere. Most places stock 10 or none. And some are invetory-counting and are closed.
[10:29:05] <Daghdha_> Thanks again tom, i got to go now.
[10:55:02] <Eldunar> Hello guys i have problem with AVRUDE its output when i want to detect my AVR ATMEGA 32A is giving me rc = -1 . I heard that i have to set SLOW_SCK but my programator do not have one. http://pastebin.com/x9sdnRSB and my programaor ( http://electropark.pl/programatory/3244-programator-dla-avr-na-usb-usbasp-3v3-i-5v-tasma-idc-5901003244001.html )
[11:58:19] <Eldunar> Hello guys i have problem with AVRUDE its output when i want to detect my AVR ATMEGA 32A is giving me rc = -1 . I heard that i have to set SLOW_SCK but my programator do not have one. http://pastebin.com/x9sdnRSB and my programaor ( http://electropark.pl/programatory/3244-programator-dla-avr-na-usb-usbasp-3v3-i-5v-tasma-idc-5901003244001.html )
[11:59:28] <Tom_itx> -B32
[12:01:33] <Tom_itx> or -i delay
[12:01:39] <Tom_itx> try one of those
[12:02:17] <Tom_itx> -i delay For bitbang-type programmers, delay for approximately delay microseconds between
[12:02:17] <Tom_itx> each bit state change. If the host system is very fast, or the target runs off
[12:02:18] <Tom_itx> a slow clock (like a 32 kHz crystal, or the 128 kHz internal RC oscillator), this
[12:02:18] <Tom_itx> can become necessary to satisfy the requirement that the ISP clock frequency
[12:02:18] <Tom_itx> must not be higher than 1/4 of the CPU clock frequency.
[12:03:04] <Eldunar> wait wait wait
[12:03:13] <Eldunar> once again
[12:03:37] <Eldunar> eclipse give me an error when i want to set -b 32
[12:03:50] <Tom_itx> not -b32 -B32
[12:04:10] <Tom_itx> and for god sake stop using eclipse!
[12:04:20] <Eldunar> Why?
[12:04:48] <Tom_itx> -b baudrate
[12:04:51] <Tom_itx> -B bitclock
[12:04:59] <Tom_itx> because it sucks
[12:05:08] <Tom_itx> first time i tried it, it locked up the pc
[12:05:14] <Tom_itx> first and last...
[12:05:20] <Eldunar> so what should i check?
[12:05:28] <Eldunar> have u an skype? that would be faster
[12:05:36] <Tom_itx> just gave you 2 things to check
[12:05:58] <Eldunar> so ill check by avrdudes ok?
[12:06:18] <Tom_itx> add one of those delays to the avrdude cmd line
[12:06:40] <Eldunar> -i delay?
[12:06:58] <Tom_itx> possibly
[12:07:05] <Tom_itx> i would try the -B32 first
[12:09:44] <Eldunar> damn, in avrdudes i can not set this to -B32
[12:10:00] <Eldunar> what software do you use?
[12:11:11] <Tom_itx> why not?
[12:11:17] <Tom_itx> use avrdude on the cmd line
[12:12:22] <Eldunar> it is opennig and closing;/
[12:12:33] <Eldunar> ok
[12:12:36] <Eldunar> i have got this
[12:14:07] <Tom_itx> http://tom-itx.no-ip.biz:81/~webpage/avr/avrdude/avrdude-doc-5.10.pdf
[12:14:21] <Tom_itx> there's an avrdude pdf in case you wanna read it
[12:14:41] <Eldunar> i have that: set SCK frequency to 16000 Hz
[12:15:03] <Eldunar> warning cannot set sck period. please check for usbasp firmawe update
[12:15:36] <Tom_itx> i dislike bitbanged programmers
[12:16:07] <Eldunar> any idea?
[12:16:09] <Lambda_Aurigae> usbasp does not always implement the clock settings. depends on the version.
[12:16:29] <Lambda_Aurigae> usbasp SUCKS donky kongs.
[12:16:30] <Tom_itx> i'm quite partial to mine: http://tom-itx.no-ip.biz:81/~webpage/boards/USBTiny_Mkii/USBTiny_Mkii_index.php
[12:16:59] <Eldunar> mby because of that i do not have jumperfor slow_SCK?
[12:17:41] <Lambda_Aurigae> maybe because you paid 3 dollars for a programmer it doesn't have all the functions you need?
[12:18:58] <Eldunar> so what i should to do?
[12:19:00] <Lambda_Aurigae> if you paid more than that for an usbasp then you paid too much.
[12:19:59] <Eldunar> https://translate.google.pl/translate?sl=pl&tl=en&js=y&prev=_t&hl=pl&ie=UTF-8&u=http%3A%2F%2Felectropark.pl%2Fprogramatory%2F3244-programator-dla-avr-na-usb-usbasp-3v3-i-5v-tasma-idc-5901003244001.html&edit-text=
[12:20:07] <Eldunar> thats my usbap
[12:20:46] <Lambda_Aurigae> looks just like every other usbasp out there. bitbanged usb and lack of features.
[12:21:06] <Tom_itx> they work but sometimes marginally
[12:21:17] <Tom_itx> because the usb is done in software
[12:21:23] <Lambda_Aurigae> get a programmer that is not based on the usbasp or vusb software for starters.
[12:21:25] <Tom_itx> on mine the usb is hardware
[12:22:05] <Lambda_Aurigae> aahh..back to work. laters.
[12:22:06] <Eldunar> So thats only the fault of programer?
[12:22:23] <Tom_itx> you get what you pay for generally
[12:24:29] <Tom_itx> there have been more screwups because of cheap programmers
[12:47:09] <Eldunar> ok its working:D
[16:33:18] <hypermagic> anybody use the atmel xmegas ?
[16:40:32] <Jartza> sometimes, yes
[16:40:36] <Jartza> but not so often yet
[16:40:44] <Jartza> I've found new tiny chips to be quite powerhouses :)
[18:34:47] rue_more changed topic of #avr to: http://www.avrbeginners.net http://tom-itx.no-ip.biz:81/~webpage/index.php http://www.avrfreaks.net ENCOURAGE PEOPLE OR WE WILL SQUASH YOU, REALLY!
[18:35:18] <rue_more> Tom_itx, is that right?
[18:37:28] <Casper> rue_more: beside plexiglass, do you know of a cheaper material, child safe, to use as a stairs barrier, that is transparent?
[18:37:41] <rue_more> lexan
[18:37:48] <Casper> cousin's baby climb on everything, need to raise the barrier...
[18:37:56] <Casper> where do you get lexan?
[18:38:50] <Casper> ... homedepot seems to say it's 3 times more expensive than plexi
[18:46:52] <hypermagic> hello my friends
[18:47:22] <hypermagic> lexan is tradename for polycarbonate ;) polycarbonate is about 2x price of plexiglass
[18:47:41] <Lambda_Aurigae> 2 inch thick bullet proof glass will work.
[18:47:46] <Lambda_Aurigae> but that's a bit pricier yet.
[18:47:51] <hypermagic> who sells plexiglass usually sells polycarbonate too.
[18:47:58] <Mr_Sheesh> SAR plastic is fairly kid-proof etc.
[18:48:17] <Mr_Sheesh> Is there a TAP plastics by you maybe?
[18:48:21] <Lambda_Aurigae> electric fence works well too.
[18:48:27] <Mr_Sheesh> LOL Lambda_Aurigae
[18:48:36] <Lambda_Aurigae> what? it's only a child.
[18:48:37] <Lambda_Aurigae> sheesh.
[18:48:39] <Mr_Sheesh> LOL
[18:48:43] <Lambda_Aurigae> not like it's human or intelligent or anything.
[18:49:01] <hypermagic> yea, the problem is not that the fence is not tall enough, the problem is it is not energized
[18:49:14] <Lambda_Aurigae> that's easily fixed.
[18:49:20] <Lambda_Aurigae> got an extension cord and a knife?
[18:49:45] <Mr_Sheesh> Well, I imagine no critter in history has peed on an electric fence knowingly, more than once...
[18:50:04] <Lambda_Aurigae> I have...but I could see the light and timed it juuust right.
[18:50:08] <Lambda_Aurigae> my brother, however, did not.
[18:50:22] <Lambda_Aurigae> but you gotta get close so you have a solid stream or it won't conduct.
[18:50:54] <Lambda_Aurigae> human body doesn't produce a laminar flow so it breaks up very quickly.
[18:51:12] <hypermagic> electric fence is great for protecting your yard from less intelligent species like animals, goys
[18:51:43] <Lambda_Aurigae> I need to make a dual stream laminar flow high pressure water gun.
[18:51:59] <Lambda_Aurigae> and shoot salt water with high voltage between the streams.
[18:52:16] <hypermagic> you just need a dual beam uv laser
[18:52:21] <Lambda_Aurigae> tried that.
[18:52:35] <Lambda_Aurigae> takes much much more power to get it to conduct over long distances.
[18:53:07] <aandrew> Lambda_Aurigae: that's a hell of a risky game, wow
[18:53:10] <Lambda_Aurigae> literally, tried that...we got the beam to ionize and conduct out to about 10cm or so.
[18:53:12] <hypermagic> no, you only need one pulse
[18:53:34] <Lambda_Aurigae> problem with the UV laser we built was it fires in very short pulses.
[18:53:39] <hypermagic> also wavelength is critical too
[18:53:54] <Lambda_Aurigae> pumped nitrogen laser.
[18:54:14] <Lambda_Aurigae> old boss of mine designed one for TI many many years ago...we reproduced it for the fun of it.
[18:55:10] <hypermagic> anyway 10cm - make it 100x better and you have 10m
[18:56:57] <hypermagic> also can you make a tight beam of water spray? ;)
[18:57:14] <Lambda_Aurigae> it's called laminar flow.
[18:57:35] <Lambda_Aurigae> by making the water flow properly you can make a long solid stream.
[18:57:39] <hypermagic> how long can you fire ?
[18:57:41] <hypermagic> far
[18:57:55] <Lambda_Aurigae> that I don't know as I have never made a laminar flow water cannon.
[18:58:17] <hypermagic> your problem will be that you require tha saltwater :/
[18:58:27] <hypermagic> disadvantage vs the lazer
[18:58:46] <hypermagic> or you piss in t when it runs out
[19:18:21] <Tom_itx> ICE
[22:12:06] <tpw_rules> anybody know anything about crc?
[22:12:24] <Tom_itx> ccr was a band
[22:12:59] <Tom_itx> i had a routine for it at one point
[22:13:04] <Tom_itx> dunno where it is now
[22:13:13] <tpw_rules> i'm trying to reverse engineer one and i don't know what kind it is
[22:13:25] <tpw_rules> the first 16 entries match regular crc16 but then the table goes awry
[22:13:43] <Tom_itx> oh
[22:15:02] <tpw_rules> oh never mind
[22:15:09] <Tom_itx> ?
[22:15:12] <tpw_rules> seems to be crc-ccitt
[22:15:21] <Tom_itx> i was gonna post just that :D
[22:16:11] <Tom_L> "CRC-CCITT" poly is g(X) = X^16 + X^12 + X^5 + 1 (0x1021) used in the FPGA (green boards and 15.4) initial remainder should be 0xFFFF