# Teensy 3.2 vs Particle photon

**URL:** <https://community.particle.io/t/teensy-3-2-vs-particle-photon/63910>\
**Category:** Libraries\
**Tags:** photon\
**Created:** [January 29, 2023, 8:31am UTC](https://community.particle.io/t/teensy-3-2-vs-particle-photon/63910 "2023-01-29T08:31:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitinjs123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nitinjs123/32/28313_2.png) [@nitinjs123](https://community.particle.io/u/nitinjs123)\
**Post date:** [January 29, 2023, 8:31am UTC](https://community.particle.io/t/teensy-3-2-vs-particle-photon/63910/1 "2023-01-29T08:31:23Z")

</div>

I am porting following project to particle photon

[Code and hardware design for a Bluetooth to POTs telephone adapter](https://github.com/danjulio/blue_pot)

following is the sketch  
[blue\_pot\_proto.ino](https://github.com/danjulio/blue_pot/blob/master/code/blue_pot_proto/blue_pot_proto.ino)

1. can anyone give me pointers on the changes required in this sketch?
2. photon is fully compatible with teensy sketches?

---

<div class="post-metadata">

**Author:** ![chipmc](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/chipmc/32/15905_2.png) [@chipmc](https://community.particle.io/u/chipmc)\
**Post date:** [January 30, 2023, 1:01pm UTC](https://community.particle.io/t/teensy-3-2-vs-particle-photon/63910/2 "2023-01-30T13:01:35Z")

</div>

@nitinjs123 ,

In general converting from an Arduino sketch to Particle is not that hard. The biggest issue is typically the libraries and even there you will find a lot of work may have already been done for you. You may also need to remap some of the pin assignments - and make sure you have enough IO

Looking at your sketch, the only library I see is EEPROM so you will simply need to use Particle’s equivalent calls.

The easiest way to start would be to try compiling and running this code on your Photon. If you run into issues, you can share your code here and see if someone can help.

Good luck!

Chip

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [January 30, 2023, 1:33pm UTC](https://community.particle.io/t/teensy-3-2-vs-particle-photon/63910/3 "2023-01-30T13:33:37Z")

</div>

@nitinjs123, the Teensy is considerably different (no WiFi, no Cloud connection, no DeviceOS running on FreeRTOS) from the Photon, including its toolchain. Here are some issues I see:

- Call references in `blue_pot_proto.ino` are defined in the `bt.ino` and `pots.ino`files. The Particle toolchain may not process multiple `.ino` files and typically, these are defined as separate libraries with `.cpp` and `.h` files.
- The Teensyduino Audio library required in the `pots.ino` code is designed for the Teensy hardware and not portable to the Photon.
- This statement is of concern as the Photon 3.3v supply will likely not be able to provide the current needed.

> However the Teensy protective PTC (thermal fuse) must be bypassed because it will trip from the inrush current for the AG1171 3.3V power supply.

@nitinjs123, besides the power issue, the show-stopper is likely the Audio library. If its requirement can be removed, only Serial interfaces remain which can be ported mainly as-is, though some work is required to adjust for the Particle toolchain.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [March 31, 2023, 1:33pm UTC](https://community.particle.io/t/teensy-3-2-vs-particle-photon/63910/4 "2023-03-31T13:33:50Z")

</div>

Closed on March 31, 2023, 1:33pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
