Asked
— Edited

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.
Step 1:
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.
Step 2:
I have fixed the scipt problem!
learning by doing
you can activate and deactivate the wireless cam now.
ON:
Set(D0, ON)
OFF:
Set(D0, on)
PWM(D0, 90)
sleep (5000)
set (D0, Off)
cheers Smarty
One thing to remember is the digital voltage pin of the ezb3 is 5v where as the digital pin voltage of the V4 is 3.3v.... Maybe this has something to do with your issues?...
You will need to dig through some forum posts to find it, but even with the V3 some people had trouble turning the camera back off using a digital pin. I can't recall the details, but I think there were some workarounds.
Alan
The camera from the V3 EZ-B was difficult at the best of times. The on/off was very much time sensitive and varied not just between cameras but sometimes on the same camera.
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.
HA!
I have fixed the problem
learning by doing ^^!
you can activate and deactivate the wireless cam now :-)
ON:
OFF:
cheers Smarty
You may want to have D0 change to off after a period of time for your ON command. I'd guess at around 500ms should do it.
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.
@Rich
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.
regards
From previous experiences with that camera I would strongly advise this... If it's working, leave it well alone!
As I said earlier, that camera is a bit of a funny one at the best of times.
Glad it's working.