Comments (2)
Just want to post a tutorial how to use Arduino Mega2560 instead Teenzy 3.1/3.2.
This tutorial is my own collection of headache while compiling code with platformio )
So everything works for date 07.2020 by this tutorial.
- find your board first with udev:
rosrun lino_udev lino_udev.py
connect arduino
save udev
sudo cp 58-lino.rules /etc/udev/rules.d/58-lino.rules
reboot
2.Change settings in platformio.ini
cd /linorobot_ws/src/linorobot/teensy/firmware
nano platformio.ini
[env:teensy31]
platform = teensy
framework = arduino
board = teensy31
;[env:mega]
;platform = atmelavr
;framework = arduino
;board = megaatmega2560
upload_protocol = teensy-cli
upload_port = /dev/linobase
to
;[env:teensy31]
;platform = teensy
;framework = arduino
;board = teensy31
[env:mega]
platform = atmelavr
framework = arduino
board = megaatmega2560
upload_protocol = avrispmkII
upload_port = /dev/linobase
3.install missed library
platformio lib -g install Servo
or
Put the servo library in the lib folder
linorobot/teensy/firmware/lib/PUTHERE
and change firmware.ino
#include <Servo.h> --> #include "Servo.h"
4.comment 26 line in firmware.ino
cd /linorobot_ws/src/linorobot/teensy/firmware/src
nano firmware.ino
5.upload firmware to arduino mega:
cd /linorobot_ws/src/linorobot/teensy/firmware
platformio run --target upload
from linorobot.
Hi, can you have a solution for ftdi plug into mega 2560 pro mini?
When i run rosrun lino_udev lino_udev.py ftdi & lidar detected but when i reboot after sudo cp 58-lino.rules /etc/udev/rules.d/58-lino.rules, the ftdi it's nor recognized.
EDIT: I have found solution, just follow this step:
-plug your ftdi
-dmsg
-unplug ftdi
-see the usb port are connected and disconnected. for me it's USB1
-sudo nano /etc/udev/rules.d/58-lino.rules
-replace USB? by USB1
EDIT2: Where i can find pinout for arduino mega to connect encoder and motor driver?
Ok not enough interrupt pin for 4wd xD. I go purchase teensy 4.1
And voila!
from linorobot.
Related Issues (20)
- firmware not finding lino_msgs/Velocities.h HOT 2
- Big wheel low RPM speed calculation problem
- laser inflation during angular moment HOT 2
- How do I change mapping of SDA and SCL pins for IMU?
- ROS Noetic (Ubuntu 20) HOT 1
- ModuleNotFoundError: No module named 'glib' HOT 2
- Install script doesn't complete and gives "Python 3.6 or greater required" error HOT 2
- Using IMU BNO055 Sensor
- gazebo model for linorobot
- Is it possible to use 1 pwm and 1 dir driven driver in linorobot
- Changing Frequency of PWM Signal
- rplidar a3
- motor driver Model X motor drive module HOT 1
- Rebuild Inst.h from Inst.msg so that platformio sees it HOT 1
- linorobot comparability with teensy LC
- Robot h/w-related questions...
- rosserial error
- scan data infilation
- Need Two Encoders on The Wheels for ACKERMANN1?
- Need adding few Ultrasound Sensors to linorobot2 - humble to avoid obstructions above the LIDAR raytrace
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linorobot.