#### update 02.11.15 ####
resolved by myself
How to programming ON/ OFF for the original EZB 3.0 2.4G Wireless Cam on EZB 4.0.
here ist DJ Sures video:
by the way! you don't need the usb-plug and push-button on camera. so you can remove this big parts from camera-board.
In this video DJ use the usb-plug for powering..
it's one way to do it.
I have fixed the scipt problem!
learning by doing
you can activate and deactivate the wireless cam now.
set (D0, Off)
Upgrade to ARC Pro
Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.
but it works fine for one hour ^^! I have a perfect video signal.
I activate the cam with D0 but I cannot deactivate it
my only question is: why I cannot turn off the power from the digital port ?
here ist DJ Sures own video:
The ezb3 may be able to supply more mA to the digital pins I an not sure, but even an Arduino can only supply about 40mA to it's digital pins if I recall....
****Sorry, I was under the impression you connected the camera's power to the signal pin... If you have it wired the same way as DJ did then I will have to let ez robot respond as to why it isn't responding to set(D0,ON) and set(D0,OFF) commands
ON/ OFF works on EZB 4.0 with this cam..
I can change the time from 100 to 1500 ml sec ON/ OFF
over 1500 mlsec the cam is always on.. but under 1500 mlsec not..
normally to activate the cam.. you have to push the "on-button" 2 seconds long..
for off - 5 secods.. I think this is the problem..
but thanks a lot
If having the on/off feature is important then you will need to play around with the timings. We could advise you of our own timings but those would prove to be useless.
Workarounds would be to use a tip/relay circuit to enable/disable the power to the camera rather than to simulate the button being pressed/held. Once the camera is on it generally will remember it's on when the power is disconnected and reconnected. There may be the occasional issue where it will be off when the power is back on but these are rare.
Another workaround is to not use anything to turn the camera on and off, just rely on the Vcc to provide power to the camera whenever the EZ-B is powered. It may waste energy but it saves a lot of headaches.
I have fixed the problem
learning by doing ^^!
you can activate and deactivate the wireless cam now :-)
This will avoid issues turning off, since your off script also begins by setting D0 on, which is a redundant command, so the sleep of 5000ms is in effect much longer than 5000ms.
Or begin the Off command with setting D0 to off for a short period before setting on again.
Consider the Set command to be simulating your finger on the button. If you hold it on there while you want the camera to work your off command isn't actually saying "let go of the button before holding it for 5 seconds"
Hope that makes sense.
the trick is.. you can shut-down the camera only, if you change the power to PWM(D0, 90-95%) and only If the first script entry is "set is on"..
I have two scripts now: one for "on" and one for "off"..
is the camera online and you activate "off".. the video goes offline immediately and after 5 seconds.. the blue lamp from the camera goes off. sleep (5000) is variable.
now, you can do what ever you want.. I activate/ deactivate the camera with voice recognition. all is working fine.
As I said earlier, that camera is a bit of a funny one at the best of times.
Glad it's working.