thanks!
2. I have .exit() function. I have this code and still get warnings:
import revpimodio2
import time
rpi = revpimodio2.RevPiModIO(autorefresh=True)
x=0
while (x<2):
sample=rpi.io.AnalogInput_5.value
if (sample>2000):
x=x+1
if (x==1):
time.sleep(5)
print("1st turn")
print("2 turn ...
Search found 4 matches
- 24 Oct 2023, 14:56
- Forum: Hardware
- Topic: Some questions
- Replies: 3
- Views: 9442
- 23 Oct 2023, 15:11
- Forum: Hardware
- Topic: Some questions
- Replies: 3
- Views: 9442
Some questions
Hello! I have some questions.
1. Is it possible to decrease the RevPiIOCycle value manually?
2. I always get this warning when run the Python script, maybe you have an idea how to fix that.
/usr/lib/python3/dist-packages/revpimodio2/helper.py:622: RuntimeWarning: io refresh time of 20 ms exceeded ...
1. Is it possible to decrease the RevPiIOCycle value manually?
2. I always get this warning when run the Python script, maybe you have an idea how to fix that.
/usr/lib/python3/dist-packages/revpimodio2/helper.py:622: RuntimeWarning: io refresh time of 20 ms exceeded ...
- 20 Oct 2023, 15:18
- Forum: Hardware
- Topic: RevPi MIO is not working correctly
- Replies: 3
- Views: 8780
Re: RevPi MIO is not working correctly
Thanks!
But I got where there was a problem, the problem was in PiCtory version. I updated PiCtory and after that, MIO stopped working. I had 2.0.7-1+revpi10+3 version, then I wrote this command: sudo apt install pictory=2.0.6 .
Everything began to work again.
But I got where there was a problem, the problem was in PiCtory version. I updated PiCtory and after that, MIO stopped working. I had 2.0.7-1+revpi10+3 version, then I wrote this command: sudo apt install pictory=2.0.6 .
Everything began to work again.
- 19 Oct 2023, 16:19
- Forum: Hardware
- Topic: RevPi MIO is not working correctly
- Replies: 3
- Views: 8780
RevPi MIO is not working correctly
Hello!
I have connected RevPi Core SE, DIO, and MIO. However, if I change the parameters for MIO, they are not changed, and there is no voltage on the output. For example, if I have default settings for MIO and want to change AnalogOutput_1, I change it, reading the value directly after it. It shows ...
I have connected RevPi Core SE, DIO, and MIO. However, if I change the parameters for MIO, they are not changed, and there is no voltage on the output. For example, if I have default settings for MIO and want to change AnalogOutput_1, I change it, reading the value directly after it. It shows ...