Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
tucson100@gmail.com  
#1 Posted : Friday, January 22, 2016 4:48:44 AM(UTC)
tucson100@gmail.com

Rank: Newbie

Groups: BetaUser, Registered
Joined: 6/4/2015(UTC)
Posts: 5

Thanks: 1 times
I was wondering if there is an easy way to read a full port or nibble of a port and act on the result. Is this something that must be done in a custom node or is there a way to do it with the available tools?
EmbrioAdmin  
#2 Posted : Friday, January 22, 2016 4:59:22 AM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 109 time(s) in 104 post(s)
Nothing like that built in currently. Could you give me some details on what you're trying to do?

tucson100@gmail.com  
#3 Posted : Friday, January 22, 2016 8:12:09 AM(UTC)
tucson100@gmail.com

Rank: Newbie

Groups: BetaUser, Registered
Joined: 6/4/2015(UTC)
Posts: 5

Thanks: 1 times
Sure, The first circumstance is the use of a radio receiver that depending on the model can have 4 to 8 bits reflecting what was sent by the transmitter. Once I have the binary value I would like to be able to act on the result very much like using the switch / case in C. In Embrio I see the node having trigger output(s) that could then determine program flow. Also have an integer output and a activation output that reflects the decimal equivalent of what has been received. In this way other nodes could be added to act on the received data. It would be nice to be able to either read a byte or a nibble, I use Greyhill Hex switches to control program modes and I usually use two per port for controlling two completely different options. Another thought I had would be this same implementation but being able to use a port expander or even a shift register to pull the data in serially behind the scenes but having all of the functionality as described above. What are your thoughts?
EmbrioAdmin  
#4 Posted : Friday, January 22, 2016 8:21:26 AM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 109 time(s) in 104 post(s)
my initial thought is that this seems like something that can be done with a custom arduino node and added to the library for reuse, I don't think it'll need a built in implementation, which I try to avoid as much as possible. When implementing this in a custom arduino node note that in design mode embrio and the arduino communicate with a bunch of serial.print commands. I'm not sure how this would interfere with what you are trying to do. The embrio commands start with upd: and inf: so maybe those can be ignored. Without knowing how what you are doing would be implemented in arduino code I'm not positive it will work with the existing serial data. I might need to add something so that embrio handles all serial input, deals with its updates and passes the rest of the data on to be consumed by your node.

If you are able to implement this with a custom arduino node please let me know so we can add it to the library. If you run into a wall with what I mentioned above let me know and I'll see if I can figure out a built in solution.
tucson100@gmail.com  
#5 Posted : Friday, January 22, 2016 9:08:14 AM(UTC)
tucson100@gmail.com

Rank: Newbie

Groups: BetaUser, Registered
Joined: 6/4/2015(UTC)
Posts: 5

Thanks: 1 times
Thanks, I'll let you know how it goes.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error