You are not logged in.
Pages: 1
Topic closed
Hi, I cannnot find REXduino examples in 2.50. Is Arduino+RPi still supported? The older examples from 2.10.8 (such as X_UNO_Blink) show errors during compilation. Thx for help.
Offline
Hi,
Arduino is still supported by REX Control System. All necessary files for REXduino will be added on REXduino GitHub soon.
In order to update your old projects based on REXduino you need to:
replace Arduino_* subsystem in your task with the proper subsystem from REXduino_masks.mdl (included in .zip file below)
copy REXduino_master.c file (included in .zip file below) to your project directory
save project and compile
There were so many changes in REX Control System which affected REXduino that automatic conversion using RexConv is not possible at the moment. Hope that the above procedure will help to solve your issue. Thank you for understanding.
If I can be of assistance, let me know.
Cheers, Tomas
Offline
Hi Tomas,
I need some help with REXduino.
I didn't play with it in previous version of Rex.
I used last *.ino files from REXduino Github (it seems that only main file changed) and flashed it on Arduino UNO.
For RexDraw project I'm using files you provided above.
Can't get any input from Arduino. When I lookup Arduino_UNO object in RexView I see
err_code 50
err_subcode 49
flashing from time to time.
Can you help me troubleshoot this? Is there a way to check (by serial console) Arduino and its program?
Regards
Hubert
EDIT:
OK, when I created new project and included plain Arduino_Uno with one analog input - its working.
But I can't get any 1-wire readings.
I enabled 1-wire in rexduino slave and I set up pinmode A0 to 1-wire. I don't see any data on OW_A0_A1_data output.
Is 1-wire requiring more configuration that setting correct pin mode?
Last edited by hubc (2017-01-05 11:41:19)
Offline
Hi hubc,
for testing, you can act as REXduino master. In the Arduino IDE, open the serial monitor, set baudrate 57600 and "no line ending"
and enter the message
c0;
The reply must be C0;
Afterwards enter
m>w;
which sets pin A0 to 1-Wire mode (pin A0 is pin 14, ">" is 62 in ASCII table, "0" is 48 in ASCII table, 62-48=14). For pin 2, that would be m2w;
And finally enter
t>;
which reads the temperature from the 1st sensor on 1-Wire bus on pin A0. Repeat for additional sensors. When you read temperature from all the sensors, enter
m>w;
to start reading from sensor 1 again.
Hope this helps, let me know what you find out.
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Hi Jaroslav,
Thanks for the help!
After m>w; command I receive:
Init:
m14W
And after t>;
1W END: p14!
What does it mean? Problem with communication to 1wire sensor?
Regards
Hubert
Offline
Hi Hubert,
yes there is a problem with the 1-Wire sensor. No sensor is found on pin A0 (14)...
Please check your wiring and try to read the sensor with another (very simple) Arduino sketch. As soon as you are able to read the sensor data with the simple sketch, come back to REXduino.
Hope this helps,
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Hi,
I tried another sensor and it's working fine! So problem solved.
Regards
Hubert
Offline
Pages: 1
Topic closed