|
Post by JKCashin on May 28, 2016 10:41:51 GMT -5
Chuck, I had my code written so far to put the Mega to sleep if there's no input... and wake once a second just to see if there's input. I was going to put main power (trigger 1) on an IRQ so it could wake up quickly. This will allow the Mega to use much less power, and I plan to chase the LEDs every second to indicate the unit is just asleep. Now I am wondering if I should do it this way... the programmer in me says yes. The lazy in me says no.. your thoughts? Geebo Thanks... I will look into that as a solution. For now I will simulate the triggers.... first in the user interface, and then by just tying 5v to the input pins... I assume that's safe... need to research more. Off to breakfast, and then move some stuff out to our race garage... exciting day! Jamie
|
|
|
Post by Chuck Elliot on May 28, 2016 11:23:18 GMT -5
The Mega just like the Uno, I used, has built-in EEPROM! See my code for a class library to control it.
Use the zener diode. Trigger in voltages can vary.
I've never used the sleep functions.The draw of the Arduino is so low that I would only consider it for a battery powered project
|
|
|
Post by JKCashin on May 28, 2016 14:46:24 GMT -5
Cool. I had no idea. I had been avoiding looking at your code because I was hoping to write it all from scratch on my own.
I have written a library for the Sharp TV, one for the Harman Kardon amps and another one for UI. Very basic libraries but libraries nonetheless.
Resisting the easy way out... Stealing your code ;-)
Also as a professional SW designer I wanted to have something to showcase my work.
Maybe just a small peek to see how you did the storage.
I have the sleep code written. I have not been able to determine the power consumption difference between sleep and idle.
I think I will fork the code and keep it for possible work later and go with idle and interrupts. Would like to find the power consumption before committing to a decision
|
|
|
Post by JKCashin on May 28, 2016 22:04:42 GMT -5
Me again Chuck, sorry. I was going to drive the 12 output triggers using transistors rather than relays... as I don't really want to have relays powered up all the time when I am using this... is there any reason you went with relays?
|
|
|
Post by Chuck Elliot on May 29, 2016 19:41:43 GMT -5
Me again Chuck, sorry. I was going to drive the 12 output triggers using transistors rather than relays... as I don't really want to have relays powered up all the time when I am using this... is there any reason you went with relays? I would reconsider the use of a relay board. it will save you a lot of work. See Amazon Link
|
|
|
Post by JKCashin on May 29, 2016 22:26:06 GMT -5
Thinking about it some more... the XMC-1, and the XPA-1Ls all use relays, as does the HK.... so maybe I am being too negative about them. A friend recommended a NPN driving a FET, but I was thinking of going with the relay board after all. I need 2 really... but this one 8 channel will do 8 if I decide to do an 8 trigger. The one you posted is opto isolated... this one I'm not sure. Or maybe even this: 4 channel Arduino Shield
I do need to get them in Canadfa
|
|
|
Post by Chuck Elliot on May 29, 2016 22:32:05 GMT -5
The relay board I posted above is opto-isolated and has 16 relays.
|
|
|
Post by JKCashin on May 29, 2016 22:43:12 GMT -5
I know... but that's USA... I need one in Canada... so I wonder if the ones I am posting are opto isolated. I don't see any data on them. Update: My local Arduino club has some 2 channel ones in stock. I will check them out on Wednesday to see if they are opto-isolated. Thanks for your patient advice Chuck... sorry for all the questions. The group meeting tonight was fun, and they helped me resolve a lot of issues on how to put it all together, physically. That's where I got the advice to use transistor-FET... and another person is giving me other advice. I understand how relays work, so I am leaning toward that, plus your advice. I would like to get something locally if I can.
|
|
|
Post by Chuck Elliot on May 29, 2016 23:13:54 GMT -5
It's pretty easy to tell if a relay board is opto-isolated. The opto chips are 4pin DIPS.
|
|
|
Post by JKCashin on May 29, 2016 23:34:13 GMT -5
Oh excellent. I think the local one has those. Think I will just go with that then. Plus, I love the clock, lol.
|
|
|
Post by JKCashin on May 31, 2016 17:42:05 GMT -5
Got one! Attachments:
|
|
|
Post by JKCashin on May 31, 2016 21:36:43 GMT -5
|
|
|
Post by JKCashin on Jun 4, 2016 0:13:24 GMT -5
Got some work done on the UI.... pretty basic right now, but this is simply an optional user interface over a serial port... ZMZ-1 UX, early stages
ZMZ-1 UX screen refresh test
As you can see, no colour yet, and very very slow. There's two reasons it's so slow... the main reason is (despite what the title bar says) the communications layer is running at 9,600 baud. The second reason is I am not being smart about what's being displayed, refreshing too much of the screen at once. But it is progress!
|
|
|
Post by JKCashin on Jan 29, 2018 13:26:17 GMT -5
OK, after a long long time away, I think I need to resurrect this project! I got kind of carried away... needed to figure out a power issue I was having, and ended up buying an oscilloscope. Hooked now! Attachment DeletedPrototype was a mess! It's greatly simplified since this pic... more to come! Longer shot! I really need to get the trigger detection working... once that happens I can move forward again.
|
|