This is an old revision of the document!
Introduction
Arduino is an “open-source electronics prototyping platform” based on AVR Atmega processors produced by Atmel (Acquired by Microchip Technology in 2016). The Arduino IDE can be run on FreeBSD either natively or via WINE.
Arduino IDE (Native)
Requires ports:
| devel/arduino | The native Arduino port for FreeBSD | |
Install the port (as root):
cd /usr/ports/devel/arduino make install clean
To run:
/usr/local/bin/arduino
or, if your paths are set as normal, just
arduino
Edit settings in ~/.arduino/preferences.txt:
serial.port=/dev/cuaU0 launcher=/usr/local/bin/firefox
Use /dev/cuaU0 for a USB/serial adapter, or /dev/cuau0 for a real serial port.
Also, make sure the user is in the dialer group or has rights to /var/spool/lock.
Arduino IDE (Wine)
Required ports:
| emulators/wine | Windows environment to run Windows apps on FreeBSD |
Download Windows file: https://web.archive.org/web/20160708175027/https://arduino.googlecode.com/files/arduino-0021.zip
Unzip in ~/.wine/drive_c
Create a link so the FreeBSD serial device is available as the Windows COM port. COM4 is used to avoid conflicts with built-in hardware:
ln -sf /dev/cuaU0 ~/.wine/dosdevices/com4
Use /dev/cuaU0 for a USB/serial adapter, or /dev/cuau0 for a real serial port.
Add user to dialer group for access to serial port (as root):
pw usermod myuser -G dialer
To run:
wine ~/.wine/drive_c/arduino-0021/arduino.exe