Free wheel sensor: Unterschied zwischen den Versionen
Aus www.wiki.ardumower.de
(→Required components) |
(→Forum) |
||
Zeile 31: | Zeile 31: | ||
* [https://drive.google.com/open?id=1ZeedX3uHcPwOuxmuAUoXXZw0_h9R85Rr Arduino Code] | * [https://drive.google.com/open?id=1ZeedX3uHcPwOuxmuAUoXXZw0_h9R85Rr Arduino Code] | ||
* [https://drive.google.com/open?id=1qjGodS3wNexXOilQUquC8CJStBHAUR9U parts for 3D printing] | * [https://drive.google.com/open?id=1qjGodS3wNexXOilQUquC8CJStBHAUR9U parts for 3D printing] | ||
+ | |||
+ | =Wiring= | ||
+ | Arduino Nano Vin -- Ardumower PCB 9V out | ||
+ | Arduino Nano GND -- Ardumower PCB GND | ||
+ | Arduino Nano D8 -- Ardumower PCB bumper | ||
+ | Arduino Nano 5v out -- HMC5883 VCC | ||
+ | Arduino Nano GND -- HMC5883 GND | ||
+ | Arduino Nano A4 -- HMC5883 SDA | ||
+ | Arduino Nano A5 -- HMC5883 SCL | ||
=Forum= | =Forum= | ||
https://www.ardumower.de/index.php/de/forum/sensoren/1603-sensor-fuer-das-stuetzrad-free-wheel#14955 | https://www.ardumower.de/index.php/de/forum/sensoren/1603-sensor-fuer-das-stuetzrad-free-wheel#14955 |
Version vom 11. Mai 2020, 15:48 Uhr
Inhaltsverzeichnis
Idea
Add a rotation sensor to the free wheel to detect 'motion/no motion over ground' of the mower and thereby detecting obstacles.
The sensor is based on a compass module (which internally measures magnetic field changes via hall sensors) and rotating magnets.
Photos
Videos
Principle test https://www.youtube.com/watch?v=SGfPwGnzHT4
Outdoor test https://www.youtube.com/watch?v=UbwwP1jQigM
Required components
- Arduino Nano (placed into printed 3D part) and powered (VIN pin) via Ardumower PCB 9V output pin
- HMC5883 compass sensor (placed into printed 3D part)
- 4 ball magnets (10mm diameter)
- printed 3D parts
Download
Note: the sensor simulates an Ardumower bumper (and will be connected to the PCB bumper pin): when no motion is detected, a bumper press is simulated. Ardumower only evaluates the bumper when in driving state.
Wiring
Arduino Nano Vin -- Ardumower PCB 9V out Arduino Nano GND -- Ardumower PCB GND Arduino Nano D8 -- Ardumower PCB bumper Arduino Nano 5v out -- HMC5883 VCC Arduino Nano GND -- HMC5883 GND Arduino Nano A4 -- HMC5883 SDA Arduino Nano A5 -- HMC5883 SCL
Forum
https://www.ardumower.de/index.php/de/forum/sensoren/1603-sensor-fuer-das-stuetzrad-free-wheel#14955