Asked

How Do I Set An Output To Reflect The Status Led Of Iotiny Or Ezb-V4?

I see a lot of questions about LEDs but can't find anything on how to connect a LED to reflect the status LED of IoTiny or EZB-v4 to say output D0

I want an external LED to flash when Connection 0 is not connected (Using D0 output) The same LED to turn ON and stay lit when connection 0 is connected The same LED to turn OFF and start flashing when connection 0 is disconnected.

How would I write this script?

Thanks Steve



Related Hardware (view all EZB hardware)
EZ-B Iotiny by EZ-Robot
Control IoTiny with Synthiam ARC: 100MHz Cortex‑M4 Wi‑Fi IoT/robot controller-camera, servos, ADC, I2C and digital I/O for easy internet automation
Wi-Fi / USB
Servos 8
Camera
Audio
UART
I2C
ADC
Digital

Related Robot Skill (view all robot skills)
Set Digital by Synthiam
Toggle a digital I/O port between TTL low (0V) and high (3.3V/5V) in ARC; select board and port, simple on/off control-signal only.

ARC Pro

Upgrade to ARC Pro

Experience the transformation – subscribe to Synthiam ARC Pro and watch your robot evolve into a marvel of innovation and intelligence.

Author Avatar
PRO
USA
#1  

Quote:

How would I write this script?
The scripts run on the computer not on the controller. To flash a LED (D0) the computer needs to send multiple commands e.g. D0=On, Pause, D0=Off, Pause, D0=ON, etc. If you are not connected to the controller, you can't.

There are other alternatives but requires an electronic circuit or an Arduino controller.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#2   — Edited

Ensure you have the lastest EZ-B V4/2 firmware installed and view the configuration in the http server. There's an option for the status of the ezb connection on a digital pin

User-inserted image

Author Avatar
PRO
USA
#3  

@DJ I'm aware of that setting how you make a led flash when the connection is off ?

Quote:

The same LED to turn OFF and start flashing when connection 0 is disconnected.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#4  

Zero flashing - just light notification

#5  

@ptp Makes sense that I can't make it flash when not connected, due to scripts running on the PC, didn't think of that. lol

@DJ I'm playing with IoTiny atm, EZB-v4 is later in the project, I have looked in the http server a few times, more just for curiosity than anything else :-) I take it IoTiny doesn't have that option, for say D7, yet or if ever. Holy cow mate, 2,047 emails - ouch What's for dinner ?   :-)