Importing Arduino Code?

Status
Not open for further replies.

DavidColburn

New member
Has anyone imported Arduino code to a Teensy 3.0 for communication purposes such as these?

http://ve3bux.com/?p=466#comment-2964

Where an external LCD is used to display rig information.

http://ve3bux.com/?page_id=501

Where CAT control of a transceiver is enabled ... and further down the Comments where an
Arduino/DDS VFO (cheap ebay board using an AD9850) may replace crystals in an old radio
or as part of a complete homebrew radio.

BTW: Some work is being done with the Raspi - capturing and filtering the internally-generated
RF signal as a signal generator and for other purposes - is RF available from the Teensy 3.0 in
the HF, VHF, or UHF range?

Thanks!
 
I looked briefly as this library. It depends on SoftwareSerial. For Teensy 3.0, you'll need my initial SoftwareSerial code, which is currently available only here:

http://forum.pjrc.com/threads/17461...eensy-3-it-seems?p=29111&viewfull=1#post29111

I'm planning to include this in Teensyduino 1.14.

You'll also need to edit FT857D.cpp, to set the pins to one of the 3 serial ports. For example:

Code:
// define software serial IO pins here:
extern SoftwareSerial rigCat(7,8); // rx,tx
 
David,
I'm working with one of the AD9850 modules at the moment. At present I'm just starting with getting the Teensy3 and the AD9850 module talking, but I have plans for a small set of amateur radio projects. Are you working on some too?

regards
Terry
 
It shouldn't be too tricky to change the FT857D library to use Serial1 instead of SoftwareSerial.

Pete
 
Teensyduino 1.15 has the partial SoftwareSerial for Teensy 3.0.

All you need to do is change the pin numbers to a pair that are a real serial port, like in reply #2 above. Then it will "just work". No need to rewrite that library so it doesn't depend on SoftwareSerial.
 
David,
Not necessarily what you were looking for, but I've cobbled together an AD9850 library that seems to work fine for me.
It's based on Ron NR8O's sketch but easier to use.
I've had three AD9850 modules driven from the same Teensy3 happily with it.

You can find it here: AD9850 Library
 
Status
Not open for further replies.
Back
Top