Page 1 of 2

RPi2 + Teensy++ 2.0 without CP2102

Posted: Fri Jan 29, 2016 12:19 pm
by mstrVLT
RPi include serial port connect RX and TX and GND to Teensy
(http://www.instructables.com/id/Read-an ... pberry-Pi/)
Double check read and write to serial port on simple sketch

I flashed at90usb1286.hex to Teensy++ 2.0

fix port (symbolic link to ttyUSB0)
sudo ln -s /dev/ttyAMA0 /dev/ttyUSB0

and ... "packet header error" "not found adapter" "not found joystic"
help me!

GIMX 5.6
RASPBIAN JESSIE November 2015
Firmwares 5.4

Re: RPi2 + Teensy++ 2.0 without CP2102

Posted: Fri Jan 29, 2016 6:37 pm
by Matlo
Did you shift the level of the Tx pin of the Teensy to 3.3V?
If you don't do that you can damage the RPi...

Re: RPi2 + Teensy++ 2.0 without CP2102

Posted: Fri Jan 29, 2016 6:51 pm
by mstrVLT
alreday teensy converting to 3.3v by MCP ...
i try recompile firmware for teensy - but still not work
simple sketch in arduino ide usb-serial still work ((((((

may be give me compiled gimx with debug = 1 in adapter.c or other debug stuf

Re: RPi2 + Teensy++ 2.0 without CP2102

Posted: Fri Jan 29, 2016 7:08 pm
by Matlo
I think some adjustments have to be done to allow the UART to work at 500kbps.

Did you remove the ttyAMA0 references in the /boot/cmdline.txt file?
http://elinux.org/RPi_cmdline.txt

Did you set the init_uart_clock to 8000000 in the /boot/config.txt file?
http://elinux.org/RPiconfig#Boot

Re: RPi2 + Teensy++ 2.0 without CP2102

Posted: Fri Jan 29, 2016 7:34 pm
by mstrVLT
Yes yes yes its work
This fix help for me111 Thx!!!
Did you set the init_uart_clock to 8000000 in the /boot/config.txt file?

Re: RPi2 + Teensy++ 2.0 without CP2102

Posted: Fri Jan 29, 2016 7:40 pm
by Matlo
:)

If you have some time, it would be nice to write some instructions on this wiki page:
http://gimx.fr/wiki/index.php?title=RPi

Re: RPi2 + Teensy++ 2.0 without CP2102

Posted: Sat Jan 30, 2016 11:20 am
by aidlover
yes pls full guide will be great

Re: RPi2 + Teensy++ 2.0 without CP2102

Posted: Sun Jan 31, 2016 9:18 pm
by mstrVLT
I wrote in WIKI http://gimx.fr/wiki/index.php?title=RPi
But ... in russian language

Some times i redact this text

Re: RPi2 + Teensy++ 2.0 without CP2102

Posted: Tue Feb 02, 2016 2:21 am
by Shaneus
Thanks so much for posting this solution! The fewer components needed the better. Hope to make use of it someday :)

Re: RPi2 + Teensy++ 2.0 without CP2102

Posted: Wed Feb 10, 2016 4:10 pm
by dedo93
hi guys, I want use an old at90usb162 board (used for psgroove) for emulate a G25 on PS4, I followed the wiki and tried all advises founded around, I can't get it to work and I don't understand what I'm missing..
I'm using a RPI 1 model B, I did update rpi firmware with rpi-update, I did set the init_uart_clock to 8000000 in the /boot/config.txt file, removed the ttyAMA0 references in the /boot/cmdline.txt file, flashed at90usb162.hex to the board, disabled debug messages on the UART port.

The cabling seems ok, when I start gimx the board is correctly recognised, the G25 and the DS4 are correctly recognised too, and if I press buttons on the racing wheel I see from gimx log that buttons are correctly mapped, but simply nothing happens on PS4.

I tried also with a CP2102 usb adapter, cabled to the same at90usb162 board, same results