0

Electronic Animated Eyes using Teensy 3.1
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Electronic Animated Eyes using Teensy 3.1

by Eichohrkater on Sat Jan 12, 2019 6:55 pm

I get the Adafruit Logo at start and the eye is absolutely normally moving and blinking, just very very dark.
Attachments
1.jpg
1.jpg (74.85 KiB) Viewed 151 times

Eichohrkater
 
Posts: 2
Joined: Sat Jan 12, 2019 12:26 pm

Re: Electronic Animated Eyes using Teensy 3.1

by pburgess on Sat Jan 12, 2019 7:04 pm

Eichohrkater wrote:the eye is absolutely normally moving and blinking, just very very dark.


Peculiar! I think this is a defect of the OLED. mail support@adafruit.com with a link to this post, they'll ship a replacement #1431.

pburgess
 
Posts: 4020
Joined: Sun Oct 26, 2008 2:29 am

Re: Electronic Animated Eyes using Teensy 3.1

by prairietech on Sat Feb 23, 2019 1:04 pm

Phillip, I've been building your project using the OLED with great success until recently.

The last batch of 3 SSD1351 I just got do strange things. The eye displays properly but every once in a while the eye will have a flicker or tearing in just part of the image. Swapped the OLED for TFT and works great. Have tried different Teensy and different power supplies with the same result.

Maybe Adafruit had a bad run of OLEDs?

prairietech
 
Posts: 43
Joined: Tue Apr 10, 2012 11:27 pm

Re: Electronic Animated Eyes using Teensy 3.1

by prairietech on Sat Feb 23, 2019 4:03 pm

Just soldered up the other two displays I received yesterday and one is dead. The other will display the eye with 3 narrow black lines running horizontal through the middle of the display. Also checked the seven other OLED displays I bought back in September for this project. They too have various issues. Looks like Adafruit has some production issues with the 128x128 OLEDs.

prairietech
 
Posts: 43
Joined: Tue Apr 10, 2012 11:27 pm

Re: Electronic Animated Eyes using Teensy 3.1

by pburgess on Mon Feb 25, 2019 8:40 pm

Occasional flicker usually just means the SPI data rata is a bit too fast for the display…you can dial this back a bit in the code. Make sure also that you’re not running the Teensy at the 96 MHz setting…for OLED, the board needs to be kept at 72 MHz. One other possible factor has to do with the connections…headers and jumper wires tend to introduce a little bit of slop into the signals, whereas direct-soldered wires end to end are usually much cleaner.

For the displays exhibiting more serious problems, try running the more “vanilla” graphics examples included with the SSD1351 library and see if there’s any change (the eye code is doing some pretty intense stuff). Also may be worth checking for solder balls or similar, please feel free to post any photos if you’d like an extra pair of eyes (pun not intended) to look for any trouble there. We can exchange any that are still acting up.

pburgess
 
Posts: 4020
Joined: Sun Oct 26, 2008 2:29 am

Re: Electronic Animated Eyes using Teensy 3.1

by prairietech on Mon Feb 25, 2019 8:56 pm

Thanks for your suggestions. I am running at 72MHz but where in the code can this be dialed back?

My concern is I have built several of these over the years with perfect results. It's only been since my last purchase in Sept 2018 that I started noticing problems. 7 out of 10 OLED displays are not working properly. I can swap displays, ribbon cables, Teensy and the display problem always stays with the individual display and not it's position connected to the Teensy.

prairietech
 
Posts: 43
Joined: Tue Apr 10, 2012 11:27 pm

Re: Electronic Animated Eyes using Teensy 3.1

by pburgess on Mon Feb 25, 2019 9:12 pm

In config.h, look for where SPI_FREQ is defined. Default is 24 MHz on Teensy, 12 MHz on most everything else. Try 12 in the Teensy case as well.

pburgess
 
Posts: 4020
Joined: Sun Oct 26, 2008 2:29 am

Re: Electronic Animated Eyes using Teensy 3.1

by Kamlok on Thu May 23, 2019 6:35 pm

Hello everyone, my name is Kamil.
I bought all equipment from adafruit and I did everything as in the instructions from the website.
I have got a problem with the eyes. I mean that the eyes are not on the middle of the screen and the eyes are trembling.
It is normal?
Secound problem is that when I am using the Joystic left and right eyes move backwards. Up and down are correct but moving to the up is very little moving.
Please, see the link to the movie.
https://youtu.be/pdOJYe1MGUo
What did I do wrong?

Kamlok
 
Posts: 2
Joined: Thu May 23, 2019 6:10 pm

Re: Electronic Animated Eyes using Teensy 3.1

by pburgess on Thu May 23, 2019 8:12 pm

It would be helpful to see a clear photo of the wiring and also the boot-up screen on the eyes. In the meantime, just a couple guesses...

The cross-eyed effect can happen if you have the OC pin on both displays wired to the same pin on the microcontroller. While the other pins are “shared” between the two displays, the OC pin must be unique for each screen. One way to verify the problem is if you get two identical half Adafruit logos on each display, rather than a full Adafruit logo split down the middle across both displays.

The trembling could be a few things…one might just be a poor connection to the joystick. Would be helpful to see the wiring. Another possibility is if you’re powering the circuit from a USB battery bank. Some power banks do not produce a steady voltage, and this can cause analogRead() to get twitchy readings like this.

pburgess
 
Posts: 4020
Joined: Sun Oct 26, 2008 2:29 am

Re: Electronic Animated Eyes using Teensy 3.1

by Kamlok on Fri May 24, 2019 5:06 am

Hi,
thank you for your answer :)
Please look on the link.
The LCD sreen are working on USB cableno power back and connect OC to Digital Pin 9 as a left eye and 10 asa right eye.
On the beginning the logo adafriut looks correct.

https://youtu.be/eD7phEIX2N0

When I connect the OC from both screen to the same PIN looks correct but the eyes stil not od the middle :(

Regards Kamil

Kamlok
 
Posts: 2
Joined: Thu May 23, 2019 6:10 pm

Re: Electronic Animated Eyes using Teensy 3.1

by pburgess on Fri May 24, 2019 9:21 pm

Ah! There was a change in the Adafruit_GFX library that I was unaware of, that required an update of the eyes code. If you download the latest from the Uncanny_Eyes repository, that should fix the cross-eyed issue:
https://github.com/adafruit/Uncanny_Eyes

I'm not sure about the trembling problem yet, but it's easy to check if this is in the wiring or the joystick itself. Upload this program to the Teensy board (change A0 if necessary to whatever analog pin has one axis of the stick connected…and you can try with the other pin from the stick as well):

Code: Select all | TOGGLE FULL SIZE
void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println(analogRead(A0));
}

After uploading, open the Serial Plotter window (Tools->Serial Plotter) and see what’s coming out. It’s normal for there to be a small amount of noise…maybe + or - 5. If you're seeing more than that, try to simplify the wiring from joystick to Teensy for a cleaner signal and see if there's any improvement.

pburgess
 
Posts: 4020
Joined: Sun Oct 26, 2008 2:29 am

Re: Electronic Animated Eyes using Teensy 3.1

by KobaSena_Fr on Thu Jun 06, 2019 4:39 am

Hello ,

I just finished to wire and program everything from : Electronic Animated Eyes using Teensy 3.1/3.2

But I have one problem , when it boot the eyes blink once and then nothing. Black screen

Video : https://www.youtube.com/watch?v=z76nfAOkaos

I have overclocked it to 96 Mhz

Can you help me please ? :)

Thanks !

KobaSena_Fr
 
Posts: 9
Joined: Wed Jun 05, 2019 2:52 pm

Re: Electronic Animated Eyes using Teensy 3.1

by KobaSena_Fr on Thu Jun 06, 2019 8:25 am

KobaSena_Fr wrote:Hello ,

I just finished to wire and program everything from : Electronic Animated Eyes using Teensy 3.1/3.2

But I have one problem , when it boot the eyes blink once and then nothing. Black screen

Video : https://www.youtube.com/watch?v=z76nfAOkaos

I have overclocked it to 96 Mhz

Can you help me please ? :)

Thanks !


I went back to the original clock and I have the same problem, once the SCK LED on the teensy board is on , the screens goes black

KobaSena_Fr
 
Posts: 9
Joined: Wed Jun 05, 2019 2:52 pm

Re: Electronic Animated Eyes using Teensy 3.1

by pburgess on Thu Jun 06, 2019 12:54 pm

Try disconnecting your wink/blink buttons temporarily, see if it then works normally. If so, they might just be wired up across the wrong pins on the button, or are a normally-closed vs normally-open variety.

Push-button-Pinout.gif
Push-button-Pinout.gif (31.3 KiB) Viewed 11 times

pburgess
 
Posts: 4020
Joined: Sun Oct 26, 2008 2:29 am

Re: Electronic Animated Eyes using Teensy 3.1

by KobaSena_Fr on Thu Jun 06, 2019 1:22 pm

well ... I was sure that the wiring buttons was the opposite XD
It now works , thank you really much ! :D

Last question , is there a really difference between TFT and OLED ? quality ? ...

KobaSena_Fr
 
Posts: 9
Joined: Wed Jun 05, 2019 2:52 pm

Please be positive and constructive with your questions and comments.