Read analog input of MIO module.

Topics about the Hardware of Revolution Pi
Post Reply
Ajinkya09
Posts: 13
Joined: 11 Jan 2024, 06:27

Read analog input of MIO module.

Post 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
Attachments
IMG_20240119_083439.jpg
IMG_20240118_152551.jpg
IMG_20240118_152440.jpg
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Read analog input of MIO module.

Post 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
Ajinkya09
Posts: 13
Joined: 11 Jan 2024, 06:27

Re: Read analog input of MIO module.

Post by Ajinkya09 »

Thank you so much for guidance,

but how I connect with Node-RED.
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Read analog input of MIO module.

Post 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.
Post Reply