Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2016-11-23 14:11:27

stepan.ozana
Member
Registered: 2016-10-06
Posts: 34

ReXduino still supported?

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

#2 2016-11-23 15:01:05

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: ReXduino still supported?

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:

  1. replace Arduino_* subsystem in your task with the proper subsystem from REXduino_masks.mdl (included in .zip file below)

  2. copy REXduino_master.c file (included in .zip file below) to your project directory

  3. save project and compile

REXduino_master.zip

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

#3 2017-01-05 10:56:03

hubc
Member
Registered: 2016-09-05
Posts: 60

Re: ReXduino still supported?

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

#4 2017-01-05 20:23:15

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: ReXduino still supported?

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

Offline

#5 2017-01-09 12:29:04

hubc
Member
Registered: 2016-09-05
Posts: 60

Re: ReXduino still supported?

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

#6 2017-01-09 12:39:41

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: ReXduino still supported?

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

Offline

#7 2017-01-26 16:11:29

hubc
Member
Registered: 2016-09-05
Posts: 60

Re: ReXduino still supported?

Hi,

I tried another sensor and it's working fine! So problem solved.

Regards
Hubert

Offline

Board footer

Powered by FluxBB