Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
Dcarlson845@gmail.com  
#1 Posted : Saturday, March 04, 2017 6:14:08 PM(UTC)
Dcarlson845@gmail.com

Rank: Newbie

Groups: Registered
Joined: 2/26/2017(UTC)
Posts: 3

Since the last update, the 5 pin rotary encoder doesn't work on the Arduino Uno.

I tested the parts with the Arduino IDE and everything works and it was work with the 5 pin rotary encoder node before the update.

What am I doing wrong??Confused
EmbrioAdmin  
#2 Posted : Sunday, March 05, 2017 8:44: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)
I'll check it out. For now just use the previous version, which you can download here: http://embrio.io/download/ReleaseNotes.aspx.

The last update only had a minor bug fix where string outputs on custom arduino nodes weren't passing a "changed" flag to their connected inputs.
EmbrioAdmin  
#3 Posted : Sunday, March 05, 2017 9:31:38 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)
I just did a successful test with a 5 pin encoder, seems to be working fine for me. Could you give me some more details about how it's not working? Just not getting values on the outputs?

Dcarlson845@gmail.com  
#4 Posted : Sunday, March 05, 2017 12:58:39 PM(UTC)
Dcarlson845@gmail.com

Rank: Newbie

Groups: Registered
Joined: 2/26/2017(UTC)
Posts: 3

I can do the simple function test on Arduino IDE, and all the components are working:


#include <Encoder.h>

Encoder myEnc(3, 2);

void setup() {
Serial.begin(9600);
Serial.println("Basic Encoder Test:");
}

long oldPosition = -999;

void loop() {
long newPosition = myEnc.read();
if (newPosition != oldPosition) {
oldPosition = newPosition;
Serial.println(newPosition);
}
}

When I try the Embrio sample from the video, I can't see any changes in the node like the video.

Even tried different pins settings, older versions, and including the encoder library with no change.

The program has a good connection, because I can run another program which has a I2C LCD node, that work perfect.

Edited by user Sunday, March 05, 2017 12:59:37 PM(UTC)  | Reason: Not specified

EmbrioAdmin  
#5 Posted : Sunday, March 05, 2017 4:10:44 PM(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 best guess would be that the pins aren't set up right, but you said you double checked those. I actually thought I did reproduce the problem earlier but it turned out I plugged into pins 4, 5, and 6 instead of 4, 3, and 2. I think it's worth comparing your setup to the picture in the tutorial one more time.

You mentioned in your first post that this happened since the new update. Were you able to use this before the update the other day?

To make sure the connection program is working, can you add a digital output to pin 13 and confirm that you can turn on and off the built in LED?
Dcarlson845@gmail.com  
#6 Posted : Sunday, March 05, 2017 5:08:13 PM(UTC)
Dcarlson845@gmail.com

Rank: Newbie

Groups: Registered
Joined: 2/26/2017(UTC)
Posts: 3

I have tried about every combination with no results. I have tried the other video examples with out any trouble, but I need the encoder part for a project.

For this project I am going back to the Arduino IDE, Sorry.
EmbrioAdmin  
#7 Posted : Monday, March 06, 2017 12:55:32 PM(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)
Sorry about the difficulty. If there's a bug I would like to get it figured out. Is there anything else going on in the project? Could you zip the project and e-mail it to me at ezra@embrio.io?
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