Firmware (Teensy)
A Makefile and Arduino project for building the Teensy Fan Controller firmware. Sources are contained in the teensy_fan_controller sub-folder.
Usage (Makefile)
Prepare the project (once), as described in Project Setup
Enter the
teensy_fan_controllerdirectory:cd teensy_fan_controllerCompile from source:
TEENSY=35 make
Upload to Teensy 3.x:
make upload
Usage (Arduino Studio)
Prepare the project (once), as described in Project Setup
Copy
teensy_fan_controller/libraries/nanopbinto your user's Arduino libraries folder (fe.~/Documents/Arduino/libraries/)Copy
teensy_fan_controller/libraries/PIDinto your user's Arduino libraries folder (fe.~/Documents/Arduino/libraries/)Launch Arduino Studio, and open project teensy_fan_controller/src/src.ino
Set Tools > Board to your Teensy board using the top menu
Set Tools > USB Type to Raw HID using the top menu
Build and upload firmware using Sketch > Upload, or by clicking the Upload button in the toolbar
Folder Structure
After the project is prepared, the teensy_fan_controller/ folder has the following structure:
teensy3sub-folder is taken from The Teensy 3 Corestoolssub-folder is taken from Teensyduinosrc/src.inocontains theloop()andsetup()functions, called byteensy3/main.cppsrc/*.{ino,c,h,cpp}Teensy Fan Controller sourcesMakefilefile, copied and modified fromteensy3/Makefile49-teensy.rulesfile is taken from PJRC's udev rules
Last updated
Was this helpful?