#avr | Logs for 2015-11-03

Back
[00:41:17] <abcminiuser> Right, who wants to make an OpenCV daemon to grab random screenshots from EEVBLOG YouTube uploads, and then remove any entries from my RSS feed with his kid in them
[00:57:55] <elektrinis-wrk> ;]]
[01:02:25] <osteri> :D
[01:05:42] <osteri> maybe audio tracking would be easier
[01:11:04] <Casper> if you do so, don't forget to make it auto thumb down the video
[01:12:05] <abcminiuser> Ah right, yeah auto-thumbs down as well
[01:12:19] <abcminiuser> No offense to him, I just can't stand kid videos
[01:12:46] <Casper> I find it to be out of place
[01:15:24] * abcminiuser is apparently a grumpy old man
[01:20:48] <Casper> but... what does oil field use for their unattented pump?!?
[01:21:14] <Casper> the gas one that run 24/7 for months before any oil change, and run for decades!
[01:43:52] <Valen> ey abcminiuser hows you been?
[01:47:03] <Jartza> 'allo
[01:47:47] <abcminiuser> Ahoyhoy
[01:47:59] <abcminiuser> I've been busy at my new(er) job, it's awesome
[01:48:23] <abcminiuser> A little more free time than my old crappy job, but somehow I still manage to fill it :(
[02:05:16] <Valen> not making lightbulbs anymore?
[02:10:56] <abcminiuser> Christ no, I ejected from there four months ago
[02:11:22] <abcminiuser> People were commenting on the noise, as I broke the speed of sound as I ran away screaming
[02:38:40] <Valen> lol, still playing with AVRs though for $?
[02:40:02] <Roklobsta> abcminiuser: old crappy = the light bulb?
[03:00:13] <Meenabarbie> I have implemented stripe payment integration in my website, I have used stripe version3.4.0 i can't get the response from stripe method
[03:00:25] <Meenabarbie> I have getting 500 internal server error
[03:00:29] <Meenabarbie> in response
[03:00:54] <Meenabarbie> amount is not credited to mentioned stripe acount
[03:01:19] <Meenabarbie> I have using php 5.4 version
[03:01:39] <Meenabarbie> but I can able to work with stripe version1.18
[03:01:56] <Meenabarbie> I couldn't upgrade it to 3.4.0
[03:02:07] <Meenabarbie> which is the current version
[03:02:34] <Meenabarbie> none of the error is not displayed in response method
[03:03:13] <Meenabarbie> Only getting 500 internal server error in network tab in console
[03:03:50] <Meenabarbie> can anyone face this problem ?
[03:04:04] <Meenabarbie> let me share the idea or solution for this
[03:15:26] <abcminiuser> ..and back - had to make dinner
[03:15:41] <abcminiuser> Valen: no lightbulbs, I'm at Blackmagic Design now
[03:15:49] <abcminiuser> Good quality A/V gear
[03:16:02] <abcminiuser> With nice, competent people
[03:16:29] * abcminiuser needs a second monitor
[07:18:53] <orzel> Hello. I can't find the information about how to get the "map file", displaying where symbols are, in which area (ram,eeprom, flash) at which address, and so on. ideally with a summary of size for each area, but i already have this information with avr-size
[07:19:08] <orzel> can you hint me ? (keyword for google search, url...?)
[07:24:28] <Tom_itx> http://www.avrfreaks.net/forum/how-read-linker-map-file-generated-winavr
[07:25:52] <Tom_itx> http://www.atmel.com/webdoc/AVRLibcReferenceManual/group__demo__project_1demo_project_map.html
[07:26:58] <Tom_itx> http://www.atmel.com/webdoc/AVRLibcReferenceManual/using_tools_1using_pass_ld_opts.html
[08:06:25] <orzel> Tom_itx: i'm reading through all of this, thanks
[08:57:09] <sabesto> anyone else figured out that on the atxmega32e5, issuing the "erase application section" command from the bootloader section deletes the *entire* flash, no matter if the lockbit for the bootloader section is set to r/w/rw lock?
[11:02:03] <hetii> Hi
[11:02:35] <hetii> Why I get error: ‘PC7’ undeclared (first use in this function)
[11:02:46] <hetii> for atmega8 in tqfp package?
[11:05:54] <hetii> is it just for ADC input ?:)
[11:22:20] <Jartza> evening
[11:22:45] <Jartza> hetii: have you declared PC7 to be anything? :)
[11:23:14] <Jartza> what's in the code
[11:24:16] <sabesto> PC7 is not in iom8.h
[11:25:23] <sabesto> and there is also no pin named PC7
[11:27:40] <Jartza> sabesto: yes there is in TQFP
[11:28:15] <sabesto> i only see PC6, and then ADC7
[11:28:39] <Jartza> oh sorry, yes... atmega8
[11:29:17] <Jartza> for some reason google shows atmega328 pinout for search "atmega8 pinout"
[11:29:17] <sabesto> which would strongly suggest that "PC7/ADC7" has no digital function
[11:30:19] <sabesto> arduino
[11:30:29] <Jartza> yeah. datasheet confirms.
[11:30:34] <Jartza> only ADC on that pin
[11:31:27] <Jartza> https://i.imgur.com/krteZLj.png
[11:31:35] <Jartza> the new datasheet pinouts with color are nice
[11:31:53] <Jartza> blue is digital, green analog, orange power and black ground
[11:32:28] <Jartza> (gray clock/osc and dark blue reset)
[11:32:35] <sabesto> yes, but i dont like the fact that the datasheets has been split into two
[11:33:03] <sabesto> certain things i can never remember belongs to family or part datasheet
[11:33:54] <sabesto> apart from that, atmel datasheets are the best ive coma across yes
[11:33:56] <sabesto> *yet
[11:34:15] <LeoNerd> Ooh, nice
[11:34:17] <sabesto> with the exception of the undocumented issue i'm having now
[11:34:32] <Jartza> well, freescale kinetis is example from another world :)
[11:34:35] <LeoNerd> IMHO the "wrong" colours, but then any time you pick colours for people they will be ;)
[11:34:45] <Jartza> you need "programmer's guide", "reference manual", "datasheet" and "user manual"
[11:35:05] <Jartza> and I've never understood the logic in the way stuff is divided between different manuals
[11:35:35] <Jartza> LeoNerd: yea... power should be red ;)
[11:35:37] <LeoNerd> I would'nt mind if AVR split the DSes up a lot more. E.g. there's sooooo much duplication around that it makes it impossible to see that e.g. Timer0 is identical between a lot of types of chip
[11:36:11] <LeoNerd> Jartza: I use bus pirate colouring ;) power is lightgrey; analog purple; plain digital IO green. yellow for clockish things
[11:36:38] <LeoNerd> But I'm aware that's somewhat nonstandard
[11:37:27] <Jartza> oh, my bus pirate doesn't have any colors
[11:37:45] <LeoNerd> The probe cables
[11:38:00] <LeoNerd> ((also I've really gone off the bus pirate lately... been using my FT232H breakout instead :) )
[11:38:13] <Jartza> oh, mine came without probe cables
[11:38:18] <LeoNerd> The bus pirate is a cute toy, but it's really not very good for anything approaching highspeed, or anything program-driven
[11:38:25] <Jartza> yea
[11:38:34] <LeoNerd> The binary IO protocol is way worse than the human-only terminal interface. So many things it can't do.
[11:38:41] <Jartza> I use Saleae
[11:38:43] <LeoNerd> It's really easy to lock it up entirely, or have it skip SPI bytes
[11:38:58] <LeoNerd> Saleae is a passive observer; I use the pirate mostly as an active SPI or I²C master.
[11:39:01] <LeoNerd> Which is what my 232H is for
[11:39:55] * LeoNerd busily rewriting lots of code for it
[12:16:30] <cehteh> hi
[12:20:08] <cehteh> is it a avr-gcc bug that aligned(2) does not align at all, aligned(4) aligns on even addresses, aligned(8) on addresses dividible by 4 and so on (function attibutes, not variables) .. or am i understanding something wrong there?
[12:33:11] <DKordic`> cehteh: I guess ``aligned(bytes)''. You see ``instruction_word_t*'', and ``sizeof(instruction_word_t*) == sizeof(FLASH_byte_t*)''.
[12:34:05] <cehteh> DKordic`: aligned by bytes was my impression too :D
[12:34:13] <cehteh> but seems to be an error
[12:34:20] <DKordic`> Why?
[12:34:47] <cehteh> wont you expect aligned(2) to align on even addresses?
[12:36:31] <DKordic`> cehteh: Please paste Your "tests".
[12:38:43] <cehteh> http://nopaste.ghostdub.de/?13433
[12:38:54] <cehteh> short test on arduino nano328
[12:39:07] <cehteh> prints '99' here .. unaligned
[12:39:27] <cehteh> align by 4 will give a even address ..
[12:39:40] <cehteh> seems to be always off by one power of 2
[12:39:54] <cehteh> $avr-gcc --version
[12:39:54] <cehteh> avr-gcc (GCC) 4.8.1
[12:39:57] <cehteh> .. debian jessie
[12:40:26] <cehteh> i tried up to aligned(128) ... why aligns by 64
[12:40:34] <cehteh> which
[12:41:49] <cehteh> i can live with that, since i discovered how it works and can work around, i just wonder if that is a bug or i misinterpret anything
[13:11:15] <Jartza> you have aligned an empty function?
[13:13:57] <cehteh> Jartza: thats just the test .. i had a pin change there before
[13:14:33] <cehteh> the real program is not ardiuno, i just made a short testcase in arduino because i wanted to use the serial things without much setup
[13:14:53] <cehteh> either way it seems to be a avr-gcc thing
[13:20:12] <Jartza> I'd rather think it might be linker script thing
[13:22:55] <Jartza> cehteh: just out of curiosity, why you want to align the function?
[13:23:17] <cehteh> i dont use a linker script at all .. maybe it uses some script which is shipped with the installation
[13:24:00] <cehteh> i need to store an addiitional bit of information along a function pointer
[13:24:34] <cehteh> now i negate the pointers, works too as long i have less than 32k flash :)
[13:26:11] <cehteh> i have some work queues (arrays of intptr_t) where function pointers are stored, but for some functions i want to pass one optional argument (also of intptr_t) along, so i tag the pointer with one bit that the following value in the queue is such an argument
[13:27:04] <cehteh> making a small event scheduler, got tired of arduino bloat
[13:34:35] <|DM|> Im having problems and I wonder if its the compilers fault (prob not)
[13:34:35] <|DM|> http://pastebin.com/cHpWvg0X
[13:36:25] <cehteh> how is the pin connected?
[13:36:32] <cehteh> and what is the problem?
[13:39:28] <Jartza> 90% of the time something people claim is "compiler problem", isn't :)
[13:40:39] <RafiX> Jartza, only if compiling for uc
[13:41:30] <Jartza> |DM|: the problem is?
[13:42:19] <|DM|> the LED is not responding to changes in light levels
[13:42:25] <|DM|> Jartza,
[13:43:04] <|DM|> @ cehteh as the first linesof the paste say. The LED cathode is on LED_N, the anode is on LED_P . There is a 330ohm resistor between the anode and LED_P
[13:43:49] <Jartza> one way of making sure it's not compiler problem is to look at the asm output
[13:44:41] <Jartza> oh... you're trying to use led as light sensor
[13:44:44] <Jartza> ...I guess?
[13:45:23] <|DM|> yes
[13:45:29] <|DM|> I'm adapting this code
[13:45:35] <|DM|> http://playground.arduino.cc/Learning/LEDSensor
[13:45:51] <|DM|> the same problem exists whe I use the arduino IDE with that code
[13:48:21] <cehteh> |DM|: you want to use the led as input/light sensor? then besser use the ADC or analog comparator, i am quite sure it doesnt give enouh voltage to be measured as digital input
[13:49:38] <|DM|> The led is being used as a capacitor , not to generate voltage.
[13:49:54] <|DM|> And apparently, this is supposed to work since its a sketch on the arduino website + multiple website mention this style
[13:50:25] <Jartza> some leds work better than others
[13:50:32] <Jartza> but how do you know it's not working?
[13:52:27] <cehteh> i'd rather be cautionous with abusing things this way .. may work or may not work
[13:52:58] <cehteh> whats the impeance of input pins in digital mode?
[13:53:44] <SM0TVI> cehteh: Which device, and as in when used as a digital input?
[13:53:55] <|DM|> high Z input is high Z
[13:54:08] <|DM|> ie DDRx = 0 , PORTx=0
[13:54:27] <|DM|> Jartza, I assumed it would get dimmer when I turned off all the lights in the room
[13:54:40] <|DM|> Jartza, Or youre implying that it just discharges the cap that fast?
[13:54:50] <SM0TVI> |DM|: Yeah, but I think cehteh wants a figure. cehteh you want the parameter to look for?
[13:55:21] <cehteh> no .. just a guess, i know that even the datasheet is quite vague on such things because they have high tolerances
[13:55:26] <Jartza> |DM|: well, you're turning it on for 1 second. how would it get any dimmer?
[13:55:50] <Toneloc> Hello everyone, I'm wondering does anyone here work in embedded systems/electronics as their profession? The reason I ask is I'm an electronics/embedded systems graduate, I went to work in the broadcast industry for a few years direct after study- layoffs are around the corner in my place and I think I want to go back to real electronics, as opposed to systems integration and firefighting! My
[13:55:50] <Toneloc> question is- what is working in electronics design like? Is it stressful? Constant hurry to get designs out the door? Lots of overtime? Working weekends etc. ?
[13:55:51] <Jartza> and you don't even calculate anywhere how long does it take for the charge to disappear
[13:56:05] <cehteh> but even high Z means there is some impedance .. whatever value that is
[13:56:09] <Jartza> that software has no way of changing how your led will react. it'll just blink
[13:56:32] <Jartza> and the blink might also be so short that eye doesn't notice
[13:56:35] <|DM|> Jartza, I'm turning it on for 1/1000th of a second. The way I calculate is that while PINB3 is high, theled is off.
[13:57:03] <Jartza> Toneloc: I do. it's stressful, always hurry :) But very very giving :)
[13:57:17] <SM0TVI> cehteh: Go to the datasheet for the AVR µC question, go to the "DC characteristics" chapter and look at I[IL] and I[IH] ( [] denotes subscript in this).
[13:57:26] <Toneloc> I really enjoy electronics-it's my hobby and passion- I'm just not sure if the reality of industry is for me, I don't know because I haven't done it yet
[13:57:42] <cehteh> SM0TVI: it was not my question/problem anyway
[13:58:03] * cehteh came here with the gcc flaw :D
[13:58:29] <Jartza> Toneloc: of course everything depend on company. I've been on projects where everybody had plenty of time to do stuff and the only thing that mattered was the quality of the product
[13:58:57] <SM0TVI> cehteh: Well, it specifies at which Vcc (5.5), so Vcc/IIL and Vcc/IIH => 5.5 Megs, give or take :3
[13:59:25] <Jartza> |DM|: I mean lines 24-28. you turn the led on and it'll burn for 1 sec?
[13:59:50] <cehteh> better tell me where the avr linker scripts are installed :D
[13:59:59] <SM0TVI> cehteh: So I would personally expect the 5M ballpark until I get up in frequency (leakage between pins etc).
[14:00:01] <Toneloc> Jartza- thanks for responding. I worked on a college project for my final, I took on a large project that I was passionate about- I had so much to do and my professor wasn't able to help me much, it was very stressful, too much for one person and I got some bad health from it
[14:00:16] <cehteh> /usr/lib/avr/lib/ldscripts/ .. ah
[14:00:17] <Toneloc> if industry is like that- I don't want it!
[14:00:52] <Jartza> Toneloc: yeah. Programming was my main interest for long... then I just "drifted" to projects using Linux & Embedded stuff and got into embedded programming... for me, electronics came later
[14:01:15] <|DM|> Jartza, _delay_us is delays in microseconds , so thats 1 milli ie 1e-3 seconds
[14:01:18] <Jartza> I've always been interested in electronics, but never got time to learn it properly, so I actually started learning it as a hobby less than 2 years ago :)
[14:01:50] <Jartza> |DM|: ah yea, true... my brain turned that into "ms" :)
[14:02:07] <RikusW> zlog
[14:02:32] <Toneloc> Jartza-what do you do in electronics now, if you don't mind me asking?
[14:04:15] <Toneloc> The thing I found stressful was dealing with hardware/software bugs / non-standard operation that wasn't the fault of your design but still held up your development and it was left to only you to solve them
[14:05:04] <SM0TVI> cehteh: At the lower end of the frequency scale, the Z is more or less equal to R, which is in the 5M ballpark, while the higher you go, leakage inside the package and on the PCB will begin affecting the impedance.
[14:05:51] <geri> hi
[14:06:10] <geri> does someone use a real time operating system here?
[14:07:38] <Jartza> yes
[14:07:43] <RikusW> Toneloc: I feel your pain, having dealt with chinese gps modules where the sleep function didn't work like advertised...
[14:07:47] <Jartza> but not on avr
[14:08:50] <Jartza> Toneloc: my previous project was http://cdn.kone.com/www.kone.se/Images/kone-ksp858-factsheet.pdf?v=1
[14:09:04] <Jartza> current customer is Suunto
[14:09:13] <Jartza> but of course, I was just part of the team
[14:09:19] <Jartza> not like "I made this" :)
[14:09:56] <Jartza> but major contribution to that ksp858
[14:10:36] <Jartza> about the current project... well, I can't say much :)
[14:10:47] <SM0TVI> Jartza: Kewl. Single or multitouch?
[14:10:47] <Jartza> except it's going to be Suunto's next generation product :P
[14:10:54] <Jartza> that KSP-858 is single touch
[14:11:00] <Jartza> the UI has been designed for single touch
[14:11:04] <Toneloc> RikusW- Yes, it's horrible-especially if the boss is breathing down your neck, but those things nearly cost me my degree ( 3 years of study on the line!, fees and my health)
[14:11:15] <hetii> Q: Can I use moc3041 to for ligth dimmer ?
[14:11:50] <Toneloc> RikusW- if it's a hobby thing, it's not as bad- at least you aren't trying to make your living from it
[14:11:53] * SM0TVI wonders if there are capacitive panels for mounting on LCD displays/front panels, or if one is better of buying one ready-made?
[14:14:16] <Toneloc> Jartza- that looks interesting, was it stressful?
[14:15:03] <Toneloc> Also, does most of your work interest you? Or is it just a case occasional things?
[14:17:49] <Jartza> I tend to select projects which interest me :)
[14:18:02] <Jartza> and I tend not to stress about the job
[14:18:49] <|DM|> so, does anyone have an idea whats wrong?
[14:22:42] <RikusW> Toneloc: it might be better to use better modules with better documentation in such cases..
[14:25:12] <RikusW> chinglish docs are a sure way to get into trouble
[14:25:52] <RikusW> In the end I put a pnp transistor before the GPS to switch it off
[14:26:22] <RikusW> and after the pcb was made I discovered turning on the GPS will cause a brownout reset on the AVR :/
[14:27:08] <Toneloc> RikusW- agreed, I was using all good name, respectable stuff - my lecturer who i relied on to 'show me the way' and who I thought knew everything there was to know, didn't really live up to that
[14:27:34] <RikusW> workaround was a hw/sw fix, swapping a 100nf before the transistor with a 1uf after, and pwming the transistor when turning it on...
[14:27:42] <Toneloc> RikusW-oh no, that was rough
[14:28:13] <RikusW> it was a prototype, but still, the guys wanted it like yesterday...
[14:28:27] <RikusW> fortunately the workaround worked...
[14:28:31] <Toneloc> RikusW- a work project or side work ?
[14:28:41] <RikusW> side work
[14:28:59] <RikusW> actually full time work at the time
[14:29:08] <Jartza> |DM|: nothing. compiler makes correct code and the led is flashing :)
[14:29:12] <Toneloc> RikusW- that's the nice thing about side work- life doesn't depend on it
[14:29:15] <Jartza> what's wrong is the logic of your software.
[14:29:48] <|DM|> Jartza, you compiled it and walked through it, or you made the whole circuit ?
[14:30:03] <Toneloc> that's what I'm going to try and do- make my income come from many different things, so that if one thing doesn't work or I mo longer like it- I can get rid of it
[14:30:14] <Jartza> |DM|: both
[14:30:29] <RikusW> Toneloc: it was a startup company, though the guys I dealt with didn't have a clue about logistics/manufacture
[14:30:38] <|DM|> so the LED is flashing, but at a speed not related to the ambient light levels?
[14:30:57] <Jartza> yes
[14:31:03] <|DM|> Hmm.
[14:31:17] <Toneloc> RikusW- would you avoid working in a startup if you were a beginner ?
[14:32:26] <|DM|> Jartza, if the LED OFF cycle is visible (ie, you can see the led is off sometimes) that means that it IS waiting for the capacitor to discharge.
[14:32:36] <Jartza> |DM|: http://pastie.org/10527454
[14:32:38] <|DM|> so I guess light levels just arent affecting capacitance
[14:32:46] <Jartza> just quick demo to make it visible
[14:33:15] <Jartza> it'll blink very slowly in dark and faster the more light you have
[14:33:31] <|DM|> Ah, you mean that pastie is the fix'd logic?
[14:34:59] <Jartza> well, one example of how you can adjust things
[14:36:26] <|DM|> Jartza, but uh, that doesnt compile ?
[14:37:21] <Jartza> oh, it does. just needs -std=c99 (or gnu99, or gnu11 etc...)
[14:37:43] <|DM|> Aha, woops.
[14:38:00] <Jartza> that for-loop variable init inside loop came in c99
[14:38:19] <|DM|> compiled and ran. Dont see a change. What else am I doing wrong :D
[14:40:42] <Jartza> hmm... works for me
[14:41:35] <|DM|> Alright, I switched LEDs and its working with a red one
[14:41:43] <|DM|> it flashes pretty slowly but it works
[14:41:54] <|DM|> Maybe my blue LEDs flash too quickly?
[14:43:00] <Jartza> https://drive.google.com/file/d/0B2dTzW9TMeBxVlgwNkxYUmFlWmc/view
[14:44:29] <orzel> You know the typical "first program" you code on uC, where one led is lighted, then the one next to her, going back and forth. How do you call this in English ? Is there a name ? "chaser"?
[14:45:13] <|DM|> Thanks a lot Jartza , this is so helpfull
[14:45:44] <|DM|> I guess the LED im using is the problem ? Since your code words with my red LED but it flashes slowly, and the blue led seems solid so I guess it flashes very quickly
[14:49:04] <RikusW> Toneloc: got disconnected... how many lines of my reply got through ?
[14:50:20] <Toneloc> RikusW what was your last line?
[14:50:45] <Toneloc> RikusW- last I got from you was>> Toneloc: it was a startup company, though the guys I dealt with didn't have a clue about logistics/manufacture
[14:51:15] <RikusW> (22:06:15) RikusW: Its risky...
[14:51:17] <RikusW> (22:06:39) RikusW: Just make sure things get done properly, like paperwork etc
[14:51:17] <RikusW> (22:06:59) RikusW: iirc those guys didn't even have me sign a contract...
[14:51:17] <RikusW> (22:08:08) RikusW: and beware of empty promises...
[14:51:39] <Jartza> |DM|: yeah, you really have to measure the time somehow to see how fast led loses the charge... and then use that value to show it somehow (like that loop)
[14:51:42] <Jartza> :)
[14:52:05] <RikusW> Toneloc: trust is important in a startup
[14:52:25] <|DM|> I see that, but I dont understand why an empty loop waiting for the change doesnt act as a variable delay
[14:52:50] <Jartza> it's probably happening too fast
[14:52:52] <Toneloc> RikusW- impression I get of many startups is that want you to be a one man engineering department
[14:53:08] <Jartza> too fast for eye to notice any difference
[14:53:12] <Toneloc> they bring you an idea, we want this function
[14:53:22] <Jartza> and each led has different light sensing abilities :)
[14:53:32] <Jartza> so you really need to find out a led that works for you
[14:53:58] <RikusW> and then want to market prototypes !... It made me afraid, very afraid of what might follow
[14:54:04] <Toneloc> then you do everything from prototype, design, manufacture, design the enclosure, get it to market, support it and do the repairs on returns
[14:54:18] <Jartza> Toneloc: I accidentally made a product
[14:54:18] <RikusW> And guess who'll be blamed if things go wrong..
[14:54:21] <Jartza> http://tagsu.io/
[14:54:21] <Jartza> :)
[14:54:28] <Jartza> https://www.verkkokauppa.com/fi/product/61543/gcdns/Tagsu-elektroninen-nimilappu
[14:54:30] <Toneloc> and component obsolence
[14:54:32] <Jartza> all sold out currently :P
[14:55:31] <RikusW> Toneloc: and lead times.... over here it can take 30 or more days to get stuff in quantity
[14:55:34] <Toneloc> RikusW- when i seen job descriptions mentioning bringing arduinos into the field as products-I thought that was worryisome
[14:55:57] <Toneloc> yes, they would want to sell prototypes- scary idea!
[14:56:25] <learath> What Could Possibly Go Wrong (tm)
[14:56:25] <Toneloc> I'm sure arduino is fine in ways- but I wouldn't think to use it for a product
[14:56:32] <RikusW> In my case it was a GPS-GSM sheep collar
[14:56:47] <|DM|> Jartza, thanks again !
[14:57:05] <RikusW> Think about the callout fees for a few 300km round trips to fix stuff :|
[14:57:59] <RikusW> Anyways the power consumption was way too high. And I doubt a solar panel will survive for long on a sheep.
[14:58:31] <RikusW> learath: everthing ! :-P
[14:58:33] <Toneloc> Jartza- coolest webpage ever- love it !!!!
[14:59:31] <RikusW> (Think barbed wire + solar panel + sheep wanting to get to the other side)
[14:59:35] <Toneloc> love the command line thing
[15:00:12] <Toneloc> nice product, very cool display
[15:00:32] <Toneloc> RikusW- oh for sure- I'm from a farming background myself
[15:00:44] <Toneloc> it wouldn't last too long through hedges
[15:01:26] <RikusW> From which country ? I'm South African
[15:01:59] <Toneloc> RikusW- my dad and I wanted to build electric fences in the animals with a sense ire around the perimeter, so that we wouldn't need fences for rotation
[15:02:22] <Toneloc> they would get a shock, or a beep in their ear when they got close to the wire
[15:02:33] <Toneloc> and wouldn;t go near ir
[15:02:39] <Toneloc> *wouldn't
[15:02:40] <RikusW> Why not use standard energizers ?
[15:02:43] <Toneloc> it
[15:03:00] <Toneloc> RikusW-we do, bu you still need to put them up
[15:03:15] <Toneloc> and with this system it could be done dynamically
[15:03:18] <RikusW> you also need the sense wire...
[15:03:26] <RikusW> unless you use gps
[15:03:33] <Toneloc> well, we could use ranging
[15:03:42] <Toneloc> and just an rx on their end
[15:04:08] <Toneloc> sometime we would like to keep certain animals away from others
[15:04:14] <Toneloc> etc
[15:04:25] <Toneloc> some on different type sof grass etc.
[15:04:25] <RikusW> like a stallion....
[15:04:33] <Toneloc> *types of
[15:04:38] <Toneloc> exactly!
[15:04:51] <Toneloc> Our farm is in Ireland
[15:04:55] <Jartza> Toneloc: yeah... the neat thing is the update of the texts through audio ;)
[15:05:39] <Jartza> Toneloc: http://labs.rakettitiede.com/12kbps-simple-audio-data-transfer-for-avr/
[15:05:41] <Toneloc> yes, I noticed that- do you do dtmf?
[15:05:51] <Jartza> nope
[15:05:53] <Jartza> I do faster
[15:05:56] <Toneloc> or just like morse?
[15:05:56] <RikusW> much simple than dtmf
[15:05:59] <Toneloc> rtty?
[15:06:17] <Jartza> Toneloc: check that article
[15:06:35] <RikusW> Toneloc: you'll be amazed at how simple it is
[15:06:43] <Jartza> that protocol actually also works over FM radio too :)
[15:06:51] <Jartza> if using comparator circuit in the receiving end
[15:07:04] <Jartza> and with some tuning, even faster (16kbps)
[15:08:09] <|DM|> my blue leds arent affected by light conditions, and red ones seem to have a lot of capacitance
[15:11:15] <Jartza> yeah, different leds work differently
[15:13:18] <Toneloc> Jartza-that's amazing, so simple- my hat goes off to you !
[15:13:25] <Toneloc> excellent work!
[15:13:33] <Jartza> thanks :)
[15:13:38] <Toneloc> really brilliant
[15:13:45] <Toneloc> did you make hackaday with it?
[15:13:48] <Jartza> yes
[15:14:02] <Jartza> http://hackaday.com/2014/11/30/transferring-audio-to-an-avr-at-12kbps/
[15:14:07] <Toneloc> excellent, you deserved to
[15:19:27] <Toneloc> RikusW-I have many friends from South Africa, there are many people from South Africa living here
[15:20:09] <RikusW> There are many in the US and Australia too
[15:20:13] <Toneloc> they left South Africa and settled in the most bombed pafrt of the UK !
[15:20:18] <Toneloc> *part
[15:20:33] <RikusW> WWII bombed ?
[15:20:53] <Toneloc> bombed as in for the last 30 years
[15:21:06] <Toneloc> I live atm in the UK part of Ireland
[15:21:42] <Toneloc> so we had civil war here up until relatively recently
[15:21:58] <RikusW> religious you mean ?
[15:22:01] <Jartza> Toneloc: lately I've been making VGA controller out of attiny85 :D
[15:22:07] <Jartza> I'm sort of obsessed with that chip
[15:22:29] <RikusW> Jartza: multicore vga controller ;)
[15:23:11] <RikusW> add 1000 and make a 3d accelerator ?
[15:23:15] <Jartza> hehe
[15:23:18] <Jartza> yeah, that too
[15:23:27] <Jartza> but BW VGA can be made with single attiny :)
[15:23:31] <Jartza> 32x14 characters
[15:23:52] <Toneloc> RikusW- it's not even religious, its more tribal- the people involved know nothing of religion
[15:24:11] <Toneloc> if they were religious people, they wouldn't have done what they did
[15:24:46] <RikusW> from the news I heard it seems like protestant vs catholic ?
[15:24:50] <Jartza> https://drive.google.com/file/d/0B2dTzW9TMeBxUUF5M19zWndPQk0/view
[15:25:27] <RikusW> or is it a case of one tribe believing this and the other that ?
[15:25:40] <Toneloc> btw, when I googled the place near where I lived, this is what I found>
[15:25:42] <Toneloc> http://cdn-02.belfasttelegraph.co.uk/migration_catalog/article25627210.ece/09b90/ALTERNATES/w620/BRENDAN_MURPHY_THE__244800a
[15:26:07] <Jartza> that picture comes out from this: https://drive.google.com/file/d/0B2dTzW9TMeBxaFFxam1uVW05NlE/view
[15:26:23] <Jartza> those 3 wires are +5V, GND and UART TX :)
[15:27:26] <Jartza> Toneloc: ...and then I realized I can drive 3 attinys in parallel :D
[15:27:29] <Toneloc> RikusW-yes, it's people from the protestant and catholic communities but these people are paramilitary- fighting over drug money, power, influence
[15:28:10] <Toneloc> protection money, alcohol production, cigarette importation, territory
[15:28:29] <Toneloc> extortion etc.
[15:28:32] <RikusW> somewhat like mafia ?
[15:28:35] <Jartza> Toneloc: https://drive.google.com/file/d/0B2dTzW9TMeBxWV9LSjZBRmliVkU/view resulting this
[15:29:02] <Toneloc> yes, like mafia but with a gripe against people of another religion
[15:29:12] <Jartza> 9600bps uart to feed data to that VGA with support for ansi-escapes
[15:30:00] <Toneloc> RikusW- it started out because the english invaded 100's of years ago and displaced the natives, there have been revolts ever since
[15:30:22] <Toneloc> the english happened to be overwhelmingly protestant and the natives catholic
[15:30:37] <Jartza> I'm just desperately trying to finish my blog-post about that vga
[15:31:01] <Toneloc> so, during civil war- the country was mostly won back except the area of northern ireland
[15:31:07] <Toneloc> which remains part of UK
[15:31:17] <RikusW> The Irish Potato Famine didn't help relations either I'd say...
[15:31:28] <Toneloc> and is the most divided territory of all
[15:31:38] <Toneloc> in terms of 'tribes'
[15:31:54] <Toneloc> so fighting has been happening there for years
[15:32:18] <Toneloc> civil war, ethnic cleansing etc
[15:32:22] <|DM|> Well, at least I got this working with LED as photovoltaic cell
[15:32:39] <Jartza> \o/
[15:32:47] <Jartza> \o/
[15:32:50] <Jartza> oops
[15:33:17] <Toneloc> the war turned into tit for tat, 'you killed my brother, now I will kill you' etc.
[15:33:24] <Toneloc> and on it goes
[15:33:26] <RikusW> Toneloc: There were the Anglo Boer war too, around 1900
[15:33:42] <Toneloc> correct
[15:33:51] <RikusW> Fortunately it didn't drag out that long
[15:34:07] <Toneloc> but there is a militant army that tried to free northern ireland
[15:34:33] <Toneloc> from the UK and return it to irish ownership
[15:34:49] <RikusW> Why can't the UK just let it go ?...
[15:34:52] <Toneloc> they done this through maximum disruption
[15:35:02] <Toneloc> so the UK wouldn't want it
[15:35:16] <Toneloc> 40 years of violence
[15:35:20] <Toneloc> bombings
[15:35:24] <Toneloc> mutilations
[15:35:28] <Toneloc> kidnappings
[15:35:41] <Toneloc> etc.
[15:35:44] <RikusW> Was it really worth it ?..
[15:36:15] <Toneloc> then, then they went for more impact
[15:36:24] <Toneloc> and started blowing up things in London
[15:36:29] <Toneloc> and the rest of the UK
[15:36:42] <Toneloc> RikusW- no, not at all
[15:36:56] <Toneloc> only guys who were involved in it think so
[15:37:07] <Toneloc> but that is just to console themselves
[15:37:21] <Toneloc> from the harsh reality
[15:37:22] <RikusW> Bombing London must have been like poking an angry tiger with a stick....
[15:38:00] <Toneloc> it certainly brought the issue forward
[15:38:26] <Toneloc> but yeah, I don't agree with any of what happened
[15:38:36] <Toneloc> but it was a difficult time
[15:38:48] <Toneloc> I can see the scars here when I koved
[15:38:52] <Toneloc> *moved
[15:38:59] <RikusW> I'd rather try the diplomatic route first...
[15:39:19] <Toneloc> yes, the terrorists say that now too
[15:40:24] <Toneloc> but they seem of the opinion that in order to be seen as been powerful enough of a force to be included in negotiations
[15:40:49] <Toneloc> that they had to show their strength and terror
[15:42:15] <RikusW> I'd say 40 years is excessive...
[15:43:35] <RikusW> maybe we should've taken this to ##history ;)
[15:44:42] <Toneloc> RikusW- yes, very off-topic, I must apologize to the rets of the channel!#
[15:45:12] <Toneloc> RikusW-I know South Africa has suffered alot too , and still does
[15:46:21] <RikusW> corruption is quite a problem now, with millions simply going down a bottomless pit
[15:46:44] <Jartza> RikusW: sometimes the channels have a bit of ##overflow ;)
[15:47:33] <Jartza> I was talking about VGA, |DM| was talking about leds and then we have some wars and mishaps
[15:47:44] <Jartza> luckily internet has a lot of space for all of this :)
[15:48:03] <|DM|> DM is still has funky stuff with leds
[15:48:17] <Jartza> hehe
[15:48:17] <|DM|> like why my ADC cant go above 450~ or so
[15:48:28] <|DM|> presumably because the led can only produce voltage in 1 direction
[15:48:34] <Jartza> I already dismantled my test circuit
[15:48:36] <|DM|> and above a certain point the adc just floats
[15:49:11] <|DM|> I guess I should use a large pullup
[15:49:44] <RikusW> Toneloc: maybe I should start a blog about things thats going wrong in za
[15:50:36] <RikusW> like raw sewerage getting into rivers because no maintenance was done because the money to do so vanished...
[15:50:55] <RikusW> its quite a huge problem
[15:51:11] <Toneloc> Jartza-just checked your links, colour vga with attiny is amazing , a true work of art ! Cn't wait to read your post
[15:51:56] <RikusW> many municipalities are technically bankrupt and can't even pay for the electricity, but still get it due to court orders....
[15:52:10] <Toneloc> RikusW-yes, its very sad. Jartza- sorry about going off-topic
[15:52:26] <RikusW> maybe I should stop now ... :-P
[15:53:30] <Toneloc> RikusW-your blog might get sensored
[15:53:47] <RikusW> indeed
[15:53:51] <orzel> http://www.digikey.fr/product-search/fr?keywords=STK600-ATMEGA2560 <- this is the original sample you got with the stk-600. It's not possible anymore to buy another one ?? Does anybody know why?
[17:05:30] <Toneloc> RikusW- yeah, it gets to you. I think thats why country people can be seen by city folk as being quite hospitible and social
[17:05:35] <RikusW> Toneloc: we do have these https://en.wikipedia.org/wiki/Springhaas
[17:05:49] <Toneloc> its because it's actually a big event when we get to meet someone !
[17:05:52] <RikusW> that is indeed so
[17:05:54] <Toneloc> especially someone new
[17:06:23] <Toneloc> RikusW-we just have barcode tags for cattle here
[17:06:48] <RikusW> we have handwritten tags
[17:07:29] <RikusW> another common practice is to cut a shape into the ear to identify the cattle
[17:10:54] <RikusW> we also tattoo in the ear
[17:11:07] <Roklobsta> with the rfid you get automatic drafting gates to route livestock to various pens.
[17:11:31] <Toneloc> Roklobsta-wow, that is smart
[17:13:36] <Roklobsta> and when dairy cows go into stalls they get whatever extra feed they need dispensed to them while being milked.
[17:15:09] <Toneloc> Roklobsta- excellent, with that sort of system you could even do a before and after to track how much feed they actually ate
[17:16:08] <Roklobsta> nah the feed i am thinking of is just extra pellets - all dairy cows in .au are grass fed.
[17:16:12] <Roklobsta> ok most
[17:16:28] <RikusW> Seems this has now become the #Agriculture conVeRsation channel :-P
[17:17:27] <Toneloc> Roklobsta-I was thinking of tracking how much pellets they ate to make sure they weren't leaving it behind
[17:17:38] <Toneloc> some are just slow eaters anyway
[17:17:42] <Roklobsta> yeah
[17:17:43] <Toneloc> and will never eat it all
[17:18:04] <Toneloc> others will eat somebody elses then theirs!
[17:18:17] <Toneloc> RikusW- Yes, you are right!
[17:18:23] <RikusW> or push them out of the way
[17:18:28] <Toneloc> I think we bet leave before we are told to leave!
[17:18:35] <RikusW> lol
[17:18:48] <Toneloc> RikusW-yes, some are bullies
[17:18:49] <RikusW> 00:51 here, way past bedtime
[17:18:58] <Toneloc> and some just push the feed out of their own reach
[17:19:02] <RikusW> bosses rather
[17:19:25] <Toneloc> bosses it's true
[17:19:25] <RikusW> it depends on their social rank
[17:19:52] <Toneloc> there is rank indeed
[17:20:07] <Toneloc> 22:55 here
[17:20:16] <Toneloc> and coming in to second wind :)
[17:20:18] <RikusW> and always the "undercow" :-P
[17:20:30] <Toneloc> not good when you are going for wind down
[17:20:31] <RikusW> (GMT+2)
[17:20:52] <Toneloc> lol @ undercow :)
[17:21:20] <Toneloc> RikusW- a few weeks ago our clocks went back an hour
[17:21:28] * RikusW got pushed around earlier while tattooing a calf.... the mother wasn't happy
[17:21:30] <Toneloc> anyways, good night gents!
[17:21:48] <RikusW> good night
[17:22:00] <Toneloc> RikusW- was good talking to you- always interesting to hear how its done in the other side of the world!
[17:22:36] <RikusW> Toneloc: We'll talk again
[17:22:57] <Toneloc> RikusW-For sure, must come in here more often
[17:23:08] <Toneloc> but will try to keep it on topic!
[17:23:24] <RikusW> I've been here a lot in the past, should try to be online more
[17:23:43] <Toneloc> I used to come here on and off
[17:23:50] <Toneloc> but not much in last years
[17:24:13] <RikusW> I've been on irc since 2006
[17:24:26] <RikusW> maybe even earlier
[17:24:31] <Toneloc> continuous?
[17:24:34] <Toneloc> :P
[17:24:45] <RikusW> with za connections ? :-P
[17:25:01] <Toneloc> RikusW 24/7 IRC uptime
[17:25:02] <Toneloc> :P
[17:25:11] <RikusW> my nick has been registered for that long
[17:25:13] <Toneloc> haha lol @ za connections
[17:25:35] <Jartza> oh
[17:26:04] <Jartza> I've been on irc since 1989 :D
[17:26:33] <Toneloc> I think I entered the party in 2007
[17:26:51] <Toneloc> is your nick registered that long Jartza?
[17:26:51] <RikusW> I might have gotten on since 2000-4 mainly on ##kernel and ##linux
[17:27:22] <Jartza> Toneloc: well, I'm mostly in ircnet, there's no such thing as "registered nick" :)
[17:27:38] <Toneloc> ah ok
[17:28:06] <Toneloc> anyways, must go and get something to eat before bed
[17:28:16] <Jartza> nor was there before ircnet/efnet -split
[17:28:28] <Toneloc> btw RikusW do you have the country tradition of dinner in the middle of the day too?
[17:28:31] <Jartza> yeah. supper-time :)
[17:28:33] <Jartza> it's 1am
[17:28:40] <RikusW> yes
[17:28:50] <Toneloc> usually between 1-3 pm
[17:29:00] <Toneloc> sometimes 12 or 12:30
[17:29:20] <Toneloc> depends on what time you started and if you have somewhere to be etc.
[17:29:28] <RikusW> though eating times is rather informal for me
[17:29:37] <Toneloc> Jartza-11pm here , where are you?
[17:29:46] <RikusW> Some people are rather strict about it...
[17:30:42] <Toneloc> RikusW- we aren't, we just have sort of a 4 hour window that it usually falls in :0
[17:30:50] <Toneloc> * :)
[17:31:10] <Toneloc> my mum cooks on the range so it can take longer than expected
[17:31:30] <Toneloc> but it also can be kept warm for hours extra if needed
[17:31:53] <RikusW> Some days are grab whatever is available.
[17:32:05] <RikusW> aka raid the fridge
[17:32:23] <Jartza> Toneloc: finland
[17:32:36] <Toneloc> RikusW-sure, we do that too when she is away
[17:32:54] <Toneloc> or just go visit my grandmother and she feeds us homemade bread:)
[17:33:11] <|DM|> can someone have a look at this http://pastebin.com/27UBBKQq?
[17:33:32] <|DM|> it doesnt work, the cycle variable is always 0
[17:33:39] <|DM|> meanwhile http://playground.arduino.cc/Code/CapacitiveSensor works, on the same circuit
[17:33:43] <Toneloc> Jartza- cool, some of my friends were there a few weeks ago
[17:33:59] <Jartza> heh. few weeks ago it was cold and raining :)
[17:34:00] <Toneloc> anyways, must go
[17:34:07] <Jartza> hope they didn't hate it much :)
[17:34:11] <Toneloc> Jartza-it was here too! lol
[17:34:11] <RikusW> |DM|: This page has been removed!
[17:34:28] <|DM|> ttp://pastebin.com/27UBBKQq
[17:34:32] <|DM|> http://pastebin.com/27UBBKQq
[17:34:42] <|DM|> your client probably just included the question mark in the link :)
[17:35:03] <Toneloc> 'night RikusW , Jartza, Roklobsta
[17:35:07] <Jartza> night!
[17:35:18] <RikusW> night
[17:35:51] <RikusW> |DM|: use a timer for timing that, if else won't time in cycles
[17:36:26] <|DM|> but the arduino one does time it in cycles ?
[17:36:26] <RikusW> maybe even try the comparator and timer
[17:36:38] <RikusW> clock cycles ?
[17:36:40] <|DM|> I guess its because the arduino compiled code is slower?
[17:36:47] <|DM|> nope, just arbritary cycles
[17:37:02] <RikusW> arbitrary might work
[17:37:15] <|DM|> it does work, the arduino code I linked works on this circuit
[17:37:18] <|DM|> my code doesnt
[17:37:34] <|DM|> even though as far as I see I copied it one to one
[17:38:56] <RikusW> add a final else to set to say 255 or 17...
[17:39:11] <RikusW> ah, missed var init
[17:40:02] <RikusW> what is the output value 0 -- 17 ?
[17:40:13] <|DM|> yes
[17:40:23] <|DM|> with the arduino code it is
[17:40:31] <|DM|> with mine its stuck to 0
[17:40:33] <RikusW> my_delay_ms(0*16); ? 0*16 = 0...
[17:40:46] <|DM|> ...
[17:41:01] * |DM| hums quietly
[17:41:35] <|DM|> the good news is that I changed 0 to sensorValue and nothing changed.
[17:43:56] <RikusW> I can't see anything obviously wrong...
[17:44:01] <Jartza> what's with the sei() and cli() ?
[17:44:07] <Jartza> I see no interrupts
[17:44:15] * RikusW yawns...
[17:45:39] <Jartza> I don't quite get the unrolled loop :)
[17:47:19] <Jartza> ahh okay, now I get it
[17:47:22] <|DM|> I copied in sei and cli just for completion
[17:50:21] <Jartza> so again, what's it supposed to do?
[17:50:40] <|DM|> sensor is a capacitive touch sensor
[17:51:04] <|DM|> the loop is supposed to time how long it takes the sensor pin to go from LOW to HIGH
[17:51:19] <|DM|> and then based on that change the duty cycle of the LED
[17:51:27] <Jartza> mmkay. are you sure you see any difference? :)
[17:51:51] <|DM|> yep, its a very obvious diff with the arduino code
[17:51:56] <Jartza> mmkay
[17:51:56] <|DM|> goes from blinking slowly up to solid
[17:52:12] <|DM|> I also ran it on an uno board with serial output and confirmed it changes
[17:54:29] <Jartza> mmkay
[17:54:47] <Jartza> can't currently see any obvious issues (except that 16*0) :)
[17:55:33] <|DM|> I fixed that :D
[17:56:11] <Jartza> and also I'm getting tired :)
[17:58:02] <|DM|> understandable, its midnight
[18:17:24] <Jartza> |DM|: ohh...
[18:17:37] <|DM|> ?
[18:17:42] <Jartza> if (bit_is_set(PORTB,SENSOR .... -> PINB,SENSOR
[18:17:59] <Quantumcross> hey, quick question.. what's generally the HIGH logic level cutoff for 5V devices?
[18:18:01] <|DM|> :|
[18:18:41] <Jartza> Quantumcross: AVR generally has "pin change" around 50% of VCC
[18:18:48] <Jartza> aroundish
[18:18:54] <|DM|> of course cycle is 0
[18:19:00] <|DM|> I set portb right before the loop...
[18:19:36] <Jartza> yea
[18:20:32] <Quantumcross> shoot, I'm putting 4.5 on a pin and I'm getting floaty values, still trying to figure out what's wrong :/
[18:20:56] <Jartza> noisy signal?
[18:21:11] <Jartza> 4.5 should be well over trigger point
[18:21:14] <Quantumcross> I'm not sure I wish I had a scope
[18:21:15] <|DM|> Jartza, it works. I'm simultaneously thankfull to you and incredibly frustrated with myself
[18:21:20] <|DM|> but hey, a lesson learned
[18:21:26] <Jartza> between 45-55% of VCC you might get floatish values
[18:21:30] <Quantumcross> I have a game controller with 9 buttons, 3 of them work perfectly, the other 6 don't
[18:21:34] <Jartza> |DM|: it's all learning :)
[18:21:44] <Quantumcross> they seem to act the same on voltmeter
[18:22:16] <Quantumcross> 4.5 V off and pulled to ground when pushed
[18:24:39] <Quantumcross> I think the circuit is: 5V|---|10k ohm|---o---|gnd
[18:24:51] <Quantumcross> there's a pad at the o and I have it connected to a digital input
[18:25:29] <Quantumcross> err
[18:25:36] <Quantumcross> the switch is betwn the 0 and gnd of course
[18:27:28] <Quantumcross> hell I might just flash the arduino bootloader on there and hook it up to an ADC pin just so I can get a serial readout, maybe I can see some noise
[18:30:20] <|DM|> so its 5v -- resistor --pad -- switch --gnd ?
[18:30:26] <|DM|> and youre taking input from pad ?
[18:31:09] <Quantumcross> yes
[18:31:15] <|DM|> if your input pins have pullups, that might be messing with it
[18:31:21] <|DM|> because of a voltage divider
[18:31:36] <Quantumcross> I'm fairly sure I tried enabling and disabling them
[18:31:47] <Quantumcross> I'll try again though
[18:32:35] <|DM|> and was the voltmeter check done with the micro running ?
[18:33:07] <Quantumcross> yeah with and without
[18:33:52] <Quantumcross> with it running it's 4.5-4.6 when off and gnd when on at the input pin
[18:42:46] <Lambda_Aurigae> http://www.allaboutcircuits.com/textbook/digital/chpt-3/logic-signal-voltage-levels/
[18:42:50] <Lambda_Aurigae> for Quantumcross
[18:43:56] <Quantumcross> thanks
[18:46:36] <Lambda_Aurigae> welcomes
[18:50:55] <Quantumcross> hmm I'm noticing funny business
[18:51:02] <Quantumcross> I need to do more investigation :)
[18:51:35] <Lambda_Aurigae> I didn' do it!
[18:52:12] <Quantumcross> ok
[18:52:14] <Quantumcross> so
[18:52:44] <Quantumcross> two of my input pins are throwing out 5V with nothing connected, is that because pull-up resistors are activated on those pins (that's my understanding of what they do)
[19:02:14] <Lambda_Aurigae> input pins putting out 5V?
[19:02:22] <Lambda_Aurigae> yeah..you could have pullups on.
[19:02:53] <Lambda_Aurigae> by setting PORTx bits to 1 you turn on pullups.
[19:06:23] <Quantumcross> yeah woah
[19:06:47] <Quantumcross> I hooked it up to an analog pin and threw an example adc -> serial code on there in arduino
[19:06:52] <Lambda_Aurigae> I only use that when inputting with a push button or open collector type connection.
[19:07:01] <Quantumcross> and the pin is jumping from 1003 to 17 randomly
[19:07:26] <Lambda_Aurigae> aaand, you just lost me with the arduino thing.
[19:07:43] <Quantumcross> lol just reading out an adc to serial that's all
[19:08:12] <Quantumcross> since I don't have a scope it's ok just to see what the signal looks like
[19:08:25] * Lambda_Aurigae don't do ardweeny
[19:09:12] <Quantumcross> yeah I moved this project from arduino to bare AVR real quick :)
[19:10:22] <Quantumcross> god all these pins are god awful noisy
[19:10:23] <Quantumcross> so
[19:10:46] <Lambda_Aurigae> do you have a stable filtered ADC reference voltage?
[19:11:15] <Quantumcross> I neglected to say that these pads are all hooked up to a globbed over mystery chip, but I was assuming that the connections were just digital inputs to the mystery chips and that it wouldn't interfere
[19:11:22] <Quantumcross> not sure what that means
[19:11:34] <Lambda_Aurigae> and AVCC needs to be stable and filtered as well.
[19:11:49] <Lambda_Aurigae> to get stable analog readings
[19:12:06] <Lambda_Aurigae> you need separate voltage for VCC and AVCC...with filtering between them.
[19:12:23] <Lambda_Aurigae> and AREF should be fed with a good stable filtered voltage as well preferably.
[19:12:58] <Lambda_Aurigae> it's all in the ADC section of the datasheet.
[19:17:33] <Quantumcross> I think I might disconnect one of these wires from the mystery chip and see if it works
[19:43:35] <Quantumcross> oh man it's a nice clean signal
[19:43:53] <Quantumcross> I was hoping to do this mod without disconnecting the original electronics (it's at PS2 controller)
[19:44:05] <Quantumcross> but I'm gonna have to cut ALL THE WIRES!!!!
[19:46:02] <Quantumcross> better yet I'll just cut the traces
[19:46:29] <Quantumcross> also just wanted to say thanks for all the help and listening to my rambling :)
[19:46:29] <Lambda_Aurigae> soak it in FeCl and be done with it.
[19:50:32] <Quantumcross> hah
[19:50:45] <Quantumcross> I can watch the ADC and watch the noise go away when I cut the trace
[19:57:35] <Quantumcross> OMG everything works perfectly!!!!!!!!!!!!!!!!!!
[20:01:37] <Quantumcross> now I kind of want to port this to my spare atmel8 so I can get it off this dirty arduino board...
[20:08:35] <Quantumcross> D: the atmega8 doesn't have PCINTs :(
[20:09:08] <Lambda_Aurigae> nope.
[20:09:12] <Lambda_Aurigae> atmega88 does
[20:09:22] <Lambda_Aurigae> atmega8 is earlier generation.
[20:09:45] <Lambda_Aurigae> atmega8, 168, and 328 are the new series with new features...
[20:13:01] <Quantumcross> ah well, I thought I'd buy a couple atmega8s just to practice and see what I could cram on there
[20:13:29] <Quantumcross> I'll have to buy a couple of each model later :)
[20:13:35] <Quantumcross> not gonna lie this is hella fun
[20:16:21] <Lambda_Aurigae> get some attiny85 chips!
[20:17:52] <Lambda_Aurigae> 8pin package, 8K flash, pcint included.
[20:18:18] <Lambda_Aurigae> half the sram though.
[20:18:33] <Lambda_Aurigae> but the attiny85 is faster...up to 20MHz rather than 16 of the atmega8.
[20:18:42] <Lambda_Aurigae> or get the atmega88 and get the speed and extra i/o pins.
[20:18:50] <Lambda_Aurigae> and the pcint
[20:20:01] <Lambda_Aurigae> and with enough magic you can make the attiny85 generate vga!
[20:23:03] <Quantumcross> I'll have to take a look at those
[20:23:11] <Quantumcross> I like the idea of making tiny things
[20:24:51] <Lambda_Aurigae> talk to Jartza about his tiny vga generator.
[20:25:03] <Lambda_Aurigae> he gets some impressive results considering what he has to work with.
[20:25:31] <Lambda_Aurigae> mono vga video(not full 640x480, just a limited text mode) with one attiny85.
[20:25:42] <Lambda_Aurigae> 3 bit/8 color with 3 attiny85 chips synced.
[20:27:35] <Lambda_Aurigae> ok...off to bed here.
[20:27:41] <Lambda_Aurigae> late and I gotta get up early.
[20:27:44] <Lambda_Aurigae> need my beauty sleep.