RIOX using CANbus and analog sensors

7 years 4 months ago #29531637 by Gary_t
Hi, question about the RIOX capabilities.

I would like to interface a number of 0-5V analog sensors to the RIOX, and have it process the inputs into CAN messages, which would be transmitted on the CANbus.

I assume the processing would need to be done in the on-board basic-like scripting language.

1. Am I correct in thinking this is possible?
2. What sort of update rate would be possible for reading the analog inputs?
3. Are the outputs able to be used as analog inputs as well?

Thanks for your help,
Gary

Please Log in or Create an account to join the conversation.

7 years 4 months ago #29531646 by niko
Hello Gary,

1. Yes, you can write a script that will write the data and send them via CAN using one of the supported protocols (CANOpen, MiniCAN, RawCAN or even RoboCAN).
2.Writing a script the fastest update rate you can have is per 1ms.
3.No, the digital outputs can be used as digital inputs as well. The analog outputs cannot be used as inputs.
The following user(s) said Thank You: Gary_t

Please Log in or Create an account to join the conversation.

7 years 4 months ago #29531648 by Gary_t
Thanks very much for the information.

I'll be ordering one and give my project a try. I'm sure I'll be back with more questions.

Gary

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29532790 by Thanes
Hey Gary,
I noticed your thread and am very interested because I am too using ultrasonic sensors (via the analog inputs on the extender) with my school project. I am using a RIOX 1216AH extender which is connected to my FBL2360 microcontroller via RoboCAN communication.
However, I am not very familiar with coding and the RoboCAN communication codes and examples in the manual are tough for me to understand. If you do have an existing script I can see and try to understand or can help with my scripting to make my sensors work, it would be awesome.
your help is greatly appreciated!
Have a nice day!
THANK YOU.
Yours sincerely,
Thanes
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29532792 by Gary_t
Hi Thanes,

Sorry, but my device is still sitting on the bench waiting for more time to work on it.

Gary

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds