Page 1 of 1

Read analog input of MIO module.

Posted: 19 Jan 2024, 04:09
by Ajinkya09
I just want to read analog input from MIO module (pin no 1), I tried multiple code but not working after that try from Node-RED, then PiCtory but can't understand where I made mistake.

I just want to how to get input from all methods.
1) python code
2)Node-RED
3)PiCtory

refer below attached

download/file.php?mode=view&id=2247pictures.
download/file.php?mode=view&id=2248
download/file.php?mode=view&id=2247

Re: Read analog input of MIO module.

Posted: 19 Jan 2024, 11:03
by dirk
Hi Ajinkya09, yes, this is a known phenomenon that happens to many who move from the Raspberry Pi structure to Revolution Pi, which is actually perfectly fine, so you are not alone here.

Access via GPIO pins, as you may know it from the Raspberry Pi, does NOT work here.

Take a look at these instructions and it will become clear:

Revolution Pi Python Introduction

Re: Read analog input of MIO module.

Posted: 20 Jan 2024, 06:33
by Ajinkya09
Thank you so much for guidance,

but how I connect with Node-RED.

Re: Read analog input of MIO module.

Posted: 22 Jan 2024, 14:06
by dirk
You can use the Exec Nodes and execute the commands:
https://revolutionpi.com/tutorials/crea ... pplication

Edit: The other way is you can use the Node-RED RevPi Nodes that are preinstalled as well.