Skip to content

Arduino Nano V3.0 ATmega328 CH340G playground on Ubuntu 15.10

License

Notifications You must be signed in to change notification settings

Pozo/arduino-nano-setup

Repository files navigation

arduino-nano-setup

Arduino Nano V3.0 ATmega328 CH340G playground on Ubuntu 15.10

Arduino Nano V3.0 ATmega328 CH340G

Driver (already installed)

lsmod | grep 'ch'
modinfo ch341
http://lxr.free-electrons.com/source/drivers/usb/serial/ch341.c

Arduino IDE

Arduino IDE here.

sudo ./arduino

Arduino IDE settings : Tools/Board Arduino Nano Tools/Processor ATmega328 Tools/Programmer Arduino as ISP Arduino Language Reference

Debug with Wireshark

modprobe usbmon
sudo wireshark

Control with Java

Official article, Arduino and Java

sudo apt-get install librxtx-java
sudo usermod -a -G dialout $USER
sudo adduser $USER dialout
sudo reboot
Run sample app #1
mvn exec:java
mvn exec:java -Dport.id=/dev/ttyUSB0
Run sample app #2
mvn clean install
java -jar target/arduino-0.0.1-SNAPSHOT.jar
java -jar -Dport.id=/dev/ttyUSB0 target/arduino-0.0.1-SNAPSHOT.jar

DTR causing a reset

Description
http://stackoverflow.com/a/35406863
http://stackoverflow.com/questions/3918032/bash-serial-i-o-and-arduino
Terminal and Arduino IDE serial monitor dumps

echo "ON" > /dev/ttyUSB0 - ubuntu.terminal.echo.pcapng

using Arduino IDE serial monitor - arduino.ide.serial.monitor.pcapng

stty -a < /dev/ttyUSB0
echo "ON" > /dev/ttyUSB0	wont work
echo "OFF" > /dev/ttyUSB0	wont work

About

Arduino Nano V3.0 ATmega328 CH340G playground on Ubuntu 15.10

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages