RPi2 + Teensy++ 2.0 without CP2102

Need help? Ask here and someone will help
mstrVLT
Posts: 8
Joined: Thu Jan 28, 2016 11:30 pm

RPi2 + Teensy++ 2.0 without CP2102

Post 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
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: RPi2 + Teensy++ 2.0 without CP2102

Post 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...
GIMX creator
mstrVLT
Posts: 8
Joined: Thu Jan 28, 2016 11:30 pm

Re: RPi2 + Teensy++ 2.0 without CP2102

Post 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
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: RPi2 + Teensy++ 2.0 without CP2102

Post 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
GIMX creator
mstrVLT
Posts: 8
Joined: Thu Jan 28, 2016 11:30 pm

Re: RPi2 + Teensy++ 2.0 without CP2102

Post 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?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: RPi2 + Teensy++ 2.0 without CP2102

Post 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
GIMX creator
aidlover
Posts: 7
Joined: Fri Dec 18, 2015 3:11 am

Re: RPi2 + Teensy++ 2.0 without CP2102

Post by aidlover »

yes pls full guide will be great
mstrVLT
Posts: 8
Joined: Thu Jan 28, 2016 11:30 pm

Re: RPi2 + Teensy++ 2.0 without CP2102

Post by mstrVLT »

I wrote in WIKI http://gimx.fr/wiki/index.php?title=RPi
But ... in russian language

Some times i redact this text
Shaneus
Posts: 2
Joined: Tue Feb 02, 2016 2:20 am

Re: RPi2 + Teensy++ 2.0 without CP2102

Post by Shaneus »

Thanks so much for posting this solution! The fewer components needed the better. Hope to make use of it someday :)
dedo93
Posts: 3
Joined: Wed Feb 10, 2016 3:56 pm

Re: RPi2 + Teensy++ 2.0 without CP2102

Post 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
Post Reply