<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
		<id>https://wiki.ardumower.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Autega</id>
		<title>www.wiki.ardumower.de - Benutzerbeiträge [de]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ardumower.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Autega"/>
		<link rel="alternate" type="text/html" href="https://wiki.ardumower.de/index.php?title=Spezial:Beitr%C3%A4ge/Autega"/>
		<updated>2026-09-22T16:08:26Z</updated>
		<subtitle>Benutzerbeiträge</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://wiki.ardumower.de/index.php?title=Ardumower_PCB&amp;diff=1886</id>
		<title>Ardumower PCB</title>
		<link rel="alternate" type="text/html" href="https://wiki.ardumower.de/index.php?title=Ardumower_PCB&amp;diff=1886"/>
				<updated>2015-04-23T21:02:53Z</updated>
		
		<summary type="html">&lt;p&gt;Autega: /* Download and flash Arduino code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Abstract=&lt;br /&gt;
This page describes how to assemble the Ardumower PCB, flash the Arduino and configure the robot mower.&lt;br /&gt;
&lt;br /&gt;
The controller is built around a ready microcontroller board (Arduino Mega 2560 using 54 I/O pins). &lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File: Ardumower_overview.png | Components overview&lt;br /&gt;
File: Arduinomega.jpg | Ardumower's heart: Arduino Mega 2560 microcontroller&lt;br /&gt;
File: Ardumower_parts.jpg| Modules available in the shop&lt;br /&gt;
File: Ardumower_pcb_photo.jpg | Ardumower PCB connects all modules (available in the shop)&lt;br /&gt;
File: Ardumower_chassis_pcb1.jpg | Chassis and PCB inside&lt;br /&gt;
File: Ardumower_chassis_pcb2.jpg | PCB mount&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Needed modules=&lt;br /&gt;
&lt;br /&gt;
All modules can be purchased as complete kits via the [https://www.marotronics.de/index.php?k=7 shop] [[File: shopping.png|link=https://www.marotronics.de/index.php?k=7]] .&lt;br /&gt;
&lt;br /&gt;
* Main functions&lt;br /&gt;
** Arduino cable (female-female and male-female jumper cable)&lt;br /&gt;
** Arduino Mega 2560 (or Arduino Due)&lt;br /&gt;
** DC voltage step-down module &lt;br /&gt;
** dual motor driver module with integrated current sensor (2 wheel motors)&lt;br /&gt;
** current sensor module&lt;br /&gt;
** motor driver module with integrated current sensor (mower motor) &lt;br /&gt;
** Resistors, Capacitors, Fuse &lt;br /&gt;
** Piezo buzzer, button, ON/OFF switch&lt;br /&gt;
&lt;br /&gt;
* Perimeter sender (optional)&lt;br /&gt;
** Arduino Nano&lt;br /&gt;
** DC voltage step-down module &lt;br /&gt;
** motor driver module with integrated current sensor &lt;br /&gt;
&lt;br /&gt;
* Perimeter receiver (optional)&lt;br /&gt;
** pre-amplifier module &lt;br /&gt;
** Capacitor, Receiver coil &lt;br /&gt;
&lt;br /&gt;
* Additional modules&lt;br /&gt;
** ultrasonic sensor module (optional)&lt;br /&gt;
** IMU module (gyro, accel. compass) (optional)&lt;br /&gt;
** realtime clock module (optional)&lt;br /&gt;
** Bluetooth module (for phone control)&lt;br /&gt;
&lt;br /&gt;
=PCB=&lt;br /&gt;
The printed circuit board (PCB) connects all electronic modules. The PCB is made with the following design parameters:&lt;br /&gt;
&lt;br /&gt;
* PCB dimensions 241x114mm &lt;br /&gt;
* All modules (motor driver, Bluetooth, etc.) can be soldered (or plugged) on the PCB (modules are available in the Ardumower shop)&lt;br /&gt;
* Uses the Arduino Mega 2560&lt;br /&gt;
* Optional: can use Arduino Due via additional adapter PCB&lt;br /&gt;
* Optional: integrated charging circuit (current limiting)&lt;br /&gt;
* All connections are available on connectors as well as +5V and GND&lt;br /&gt;
* Max. trace current (for motors): 8A&lt;br /&gt;
&lt;br /&gt;
'''Click here for photos''': https://github.com/Ardumower/ardumower/tree/master/pcb/megashield_svn_0.5/Platinenbilder&lt;br /&gt;
&lt;br /&gt;
More photos to come...&lt;br /&gt;
&lt;br /&gt;
=Schematics=&lt;br /&gt;
&lt;br /&gt;
A schematics says more than a thousand words...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File: Ardumower_schematics.png | for old v0.9.3 code (not recommended)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Click here for latest version''' (PDF): https://github.com/Ardumower/ardumower/blob/master/pcb/megashield_svn_0.5/ardumower%20mega%20shield%20svn.pdf&lt;br /&gt;
&lt;br /&gt;
The schematics and PCB files were created with KiCad. They can be downloaded from [https://github.com/Ardumower/ardumower/archive/master.zip github] and can be edited by open source [http://kicad.nosoftware.cz/windows/KiCad_testing-2014.10.19-BZR5203_Win_full_version.exe KiCAD software].&lt;br /&gt;
&lt;br /&gt;
=PCB jumpers=&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Feature used&lt;br /&gt;
! YES&lt;br /&gt;
! NO&lt;br /&gt;
! Comment&lt;br /&gt;
|-&lt;br /&gt;
| Integrated charging control via adjustable &lt;br /&gt;
&lt;br /&gt;
voltage regulator (LM350T) with potentiometer&lt;br /&gt;
&lt;br /&gt;
for adjustable charging voltage &lt;br /&gt;
(recommended: NO) &lt;br /&gt;
| D7: DIODE&lt;br /&gt;
&lt;br /&gt;
D3: DIODE&lt;br /&gt;
&lt;br /&gt;
C1, C4, U4, RV1: used&lt;br /&gt;
|D7: SHORT-CIRCUIT&lt;br /&gt;
&lt;br /&gt;
D3: SHORT-CIRCUIT&lt;br /&gt;
&lt;br /&gt;
C1, C4, U4, RV1: not used&lt;br /&gt;
| Do not use if using external battery charger&lt;br /&gt;
|-&lt;br /&gt;
| External power while charging (recommended: NO)&lt;br /&gt;
| JP6: CLOSE&lt;br /&gt;
&lt;br /&gt;
JP7: OPEN&lt;br /&gt;
&lt;br /&gt;
D4: DIODE&lt;br /&gt;
&lt;br /&gt;
C5: not used&lt;br /&gt;
| JP6: OPEN&lt;br /&gt;
&lt;br /&gt;
JP7: CLOSE&lt;br /&gt;
&lt;br /&gt;
D4: SHORT-CIRCUIT&lt;br /&gt;
&lt;br /&gt;
C5: used&lt;br /&gt;
| Use to power your PCB from externally (disconnect battery from PCB) while charging&lt;br /&gt;
|-&lt;br /&gt;
| Arduino controlled charge relay (recommended: YES)&lt;br /&gt;
| JP4: CLOSE&lt;br /&gt;
&lt;br /&gt;
JP5: OPEN&lt;br /&gt;
| JP4: OPEN&lt;br /&gt;
&lt;br /&gt;
JP5: CLOSE&lt;br /&gt;
| Use for Arduino controlled charge relay (not automatic charging)&lt;br /&gt;
|-&lt;br /&gt;
| Arduino Due (3.3V I/O)&lt;br /&gt;
| LP0, ..., LP15: OPEN&lt;br /&gt;
| LP0, ..., LP15: CLOSE&lt;br /&gt;
| Do not use if using Arduino Mega&lt;br /&gt;
|-&lt;br /&gt;
| Bluetooth VCC=3.3V&lt;br /&gt;
| JP8: OPEN&lt;br /&gt;
&lt;br /&gt;
JP9: CLOSE&lt;br /&gt;
| JP8: CLOSE&lt;br /&gt;
&lt;br /&gt;
JP9: OPEN&lt;br /&gt;
| Many latest modules use 3.3V&lt;br /&gt;
|-&lt;br /&gt;
| Bluetooth programming mode&lt;br /&gt;
| JP2: CLOSE &lt;br /&gt;
| JP2: OPEN&lt;br /&gt;
| Use for reprogramming baud rate etc.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=PCB modules=&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Module&lt;br /&gt;
! Feature&lt;br /&gt;
! Pinout&lt;br /&gt;
! Optional&lt;br /&gt;
! Comment&lt;br /&gt;
|-&lt;br /&gt;
| U1&lt;br /&gt;
| DC/DC converter (10V)&lt;br /&gt;
| GND, Vout, Vin, GND&lt;br /&gt;
| No&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U2&lt;br /&gt;
| Bluetooth (HC-05)&lt;br /&gt;
| VCC, GND, TXD, RXD, Key, LED&lt;br /&gt;
| Yes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U3&lt;br /&gt;
| Current sensor (charging)&lt;br /&gt;
| VCC, GND, OUT, IP+, IP-5&lt;br /&gt;
| Yes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U4&lt;br /&gt;
| Charge control (LM350T)&lt;br /&gt;
| AJD, OUT, IN&lt;br /&gt;
| Yes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U5&lt;br /&gt;
| Current sensor (charging)&lt;br /&gt;
| VCC, GND, OUT, IP+, IP-5&lt;br /&gt;
| Yes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U6&lt;br /&gt;
| DC/DC converter (3.3V)&lt;br /&gt;
| GND, Vout, Vin, GND&lt;br /&gt;
| No&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U7&lt;br /&gt;
| DC/DC converter (5V)&lt;br /&gt;
| GND, Vout, Vin, GND&lt;br /&gt;
| No&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U8&lt;br /&gt;
| Realtime clock (DS1307)&lt;br /&gt;
| Batt, GND, VCC, SDA, SCL, DS, SQ&lt;br /&gt;
| Yes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U9&lt;br /&gt;
| Wifi (ESP8266)&lt;br /&gt;
| TX, CH_PD, Reset, VCC, GND, GP_IO2, GP_IO0, RX&lt;br /&gt;
| Yes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U10&lt;br /&gt;
| Level shifter 5V-&amp;gt;3V (Arduino Due)&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| U11&lt;br /&gt;
| Wifi (ESP8266)&lt;br /&gt;
| TX, CH_PD, Reset, VCC, GND, GP_IO2, GP_IO0, RX&lt;br /&gt;
| Yes&lt;br /&gt;
| alternative mount position&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=PCB connectors=&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Connector&lt;br /&gt;
! Feature&lt;br /&gt;
! Pinout&lt;br /&gt;
! Optional&lt;br /&gt;
! Comment&lt;br /&gt;
|-&lt;br /&gt;
| P1&lt;br /&gt;
| Sonar center (HC SR-04)&lt;br /&gt;
| 5V, GND, Trigger, Echo&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P2&lt;br /&gt;
| Sonar right (HC SR-04)&lt;br /&gt;
| 5V, GND, Trigger, Echo&lt;br /&gt;
| Yes&lt;br /&gt;
|-&lt;br /&gt;
| P3&lt;br /&gt;
| Sonar left (HC SR-04)&lt;br /&gt;
| 5V, GND, Trigger, Echo&lt;br /&gt;
| Yes&lt;br /&gt;
|-&lt;br /&gt;
| P4&lt;br /&gt;
| reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P5&lt;br /&gt;
| IMU (gyro,acceleration,compass) (GY-80)&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P6&lt;br /&gt;
| Lawn sensor&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P7&lt;br /&gt;
| Status LEDs&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P8&lt;br /&gt;
| Odometry right&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P9&lt;br /&gt;
| Odometry left&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P10&lt;br /&gt;
| GPS (GY-NEO6MV2)&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P11&lt;br /&gt;
| Bumper&lt;br /&gt;
| GND, GND, right, left&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P12&lt;br /&gt;
| Perimeter coil (center or left)&lt;br /&gt;
| 5V, GND, perimeter&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P13&lt;br /&gt;
| R/C remote control&lt;br /&gt;
| 5V, GND, mow, steer, speed, switch&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P14&lt;br /&gt;
| Measurement points&lt;br /&gt;
| 5V, GND, (Depending on JP15: 3.3V, 5V or Arduino 3.3V)&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P15&lt;br /&gt;
| Wheel motor left&lt;br /&gt;
| M1OUT1, M1OUT2&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P16&lt;br /&gt;
| Optional motor driver input&lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
| Do not connect &lt;br /&gt;
|-&lt;br /&gt;
| P17&lt;br /&gt;
| Optional motor driver input&lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
| Do not connect &lt;br /&gt;
|-&lt;br /&gt;
| P18&lt;br /&gt;
| Wheel motor right&lt;br /&gt;
| M2OUT1, M2OUT2&lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P19&lt;br /&gt;
| Tilt sensor&lt;br /&gt;
| 5V, GND, tilt&lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P20&lt;br /&gt;
| Button (Start/Stop)&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P21&lt;br /&gt;
| Drop sensor right&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P22&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P23&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P24&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P25&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P26&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P27&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P28&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P29&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P30&lt;br /&gt;
| Perimeter coil right&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P31&lt;br /&gt;
| Drop sensor left&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P32&lt;br /&gt;
| GND&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P33&lt;br /&gt;
| 5V&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P34&lt;br /&gt;
| 3.3V&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P35&lt;br /&gt;
| Mower motor RPM&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P36&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P37&lt;br /&gt;
| Mower motor&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P38&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P39&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P40&lt;br /&gt;
| User switches&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P41&lt;br /&gt;
| Rain sensor&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P42&lt;br /&gt;
| Charging pins&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P43&lt;br /&gt;
| Battery (24V)&lt;br /&gt;
| &lt;br /&gt;
| No&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P44&lt;br /&gt;
| Wifi module (ESP8266)&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P45&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| P46&lt;br /&gt;
| Reserved&lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Power supply=&lt;br /&gt;
Please also read the section 'Voltages' under [[Motor driver]] for more information on motor voltages.&lt;br /&gt;
&lt;br /&gt;
It is recommended to use a voltage step-down converter (e.g. module using LM2596) to generate the 5V voltage for the Arduino and all additional modules. Before connecting, set the voltage of the converter to 5V. &lt;br /&gt;
&lt;br /&gt;
[[File:warning.png]]Warning : never connect more than 5V on the Arduino 5V pins, or you will damage the Arduino. Therefore, always measure the 5V voltage before connecting it to the Arduino 5V pin!&lt;br /&gt;
All components together (as shown in the schematics) need about 5W power.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File: Dcdc_noise.jpg | NOTE: Keep away coil/pre-amplifier from DC/DC converters!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Download and flash Arduino code=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE&amp;lt;/b&amp;gt;: If you have never worked with Arduino before, read our &amp;lt;b&amp;gt;[http://wiki.ardumower.de/index.php?title=Arduino_first_steps 'Arduino first steps' introduction]&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
You have two options: &lt;br /&gt;
* Download [https://github.com/Ardumower/ardumower/archive/master.zip github code (recommended)]  OR&lt;br /&gt;
* Download [http://www.ardumower.de/index.php/de/downloads v0.9.3 code (old, not recommended)]&lt;br /&gt;
&lt;br /&gt;
Finally, download and start the [http://arduino.cc/en/Main/Software Arduino IDE] to flash the code to your Arduino.&lt;br /&gt;
&lt;br /&gt;
'''Arduino Version''': It is very Importent that you use the Arduino IDE version 1.6.3 or above AND select the right Board (Mega 2560 or Due).&lt;br /&gt;
&lt;br /&gt;
[[File:warning.png]] Note: Always verify that the pin configuration in your Arduino code (config.h/mower.cpp) matches your actual circuit!&lt;br /&gt;
&lt;br /&gt;
=First-time calibration=&lt;br /&gt;
==Wheel motors==&lt;br /&gt;
[[File:warning.png]]Security note: For security reasons, always remove mower blades in your first tests!&lt;br /&gt;
&lt;br /&gt;
Initially, you should verify that the wheel motors are controlled correctly and in the right direction. The software offers a diagnostic mode. Open the serial console in the Arduino IDE (CTRL+SHIFT+M) and set the baudrate to 19200. The motor and sensor values should appear constantly:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background-color: lightgrey; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    20 OFF  spd    0    0    0 sen    0    0    0 bum    0    0 son...&lt;br /&gt;
    21 OFF  spd    0    0    0 sen    0    0    0 bum    0    0 son...&lt;br /&gt;
    22 OFF  spd    0    0    0 sen    0    0    0 bum    0    0 son...&lt;br /&gt;
    23 OFF  spd    0    0    0 sen    0    0    0 bum    0    0 son...&lt;br /&gt;
    24 OFF  spd    0    0    0 sen    0    0    0 bum    0    0 son...&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, press the key ‘t’ on the keyboard, and confirm using ENTER. The diagnostic mode should appear, and you can test your motors.&lt;br /&gt;
&lt;br /&gt;
==ADC calibration==&lt;br /&gt;
Run the ADC calibration once (either via serial console or &amp;quot;pfodApp-&amp;gt;ADC Calibration&amp;quot;), so that the received signal is symmetric around zero.&lt;br /&gt;
&lt;br /&gt;
=Diagnostics/troubleshooting=&lt;br /&gt;
Each time a sensor triggers, its corresponding sensor counter increases. The sensor trigger counters as well as the current sensor values can be viewed on the serial console. The following values are shown for the trigger counters in the serial console:&lt;br /&gt;
&lt;br /&gt;
# Time of state machine's state (ms)&lt;br /&gt;
# loop()-counts per second&lt;br /&gt;
# choosen Verbose-Mode (0=counter readings/1=current values/2=current values)&lt;br /&gt;
# current state machine state (FORW, REV, ROLL etc.)&lt;br /&gt;
# drive home? (1/0)&lt;br /&gt;
# &amp;quot;spd&amp;quot; - Control/speed motors: left (PWM), right (PWM), mower (RPM)&lt;br /&gt;
# &amp;quot;sen&amp;quot; - Current limit exceeded counter motors: left, right, mower &lt;br /&gt;
# &amp;quot;bum&amp;quot; - bumper counter: left, right&lt;br /&gt;
# &amp;quot;son&amp;quot; - Ultrasonic-distance threshold exceeded (counter)&lt;br /&gt;
# &amp;quot;pit/roll&amp;quot; - Tilt (computed by acceleration sensor)&lt;br /&gt;
# &amp;quot;com&amp;quot; - compass course&lt;br /&gt;
# &amp;quot;per&amp;quot; - Perimeter loop detected: counter&lt;br /&gt;
# &amp;quot;bat&amp;quot; - Battery voltage&lt;br /&gt;
# &amp;quot;chg&amp;quot; - Charging current &lt;br /&gt;
&lt;br /&gt;
Using the key 'v', you can toggle between sensor trigger counters and current sensor values.&lt;br /&gt;
&lt;br /&gt;
[[File:warning.png]] Additionally, you can use pfodApp (Android) to plot the sensors (trigger counters and current values) over time. This allows you to wirelessly monitor your robot mower for error diagnostics. It is highly recommended.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Ardumower_sensor_counter_plotting.jpg |Sensor trigger counters&lt;br /&gt;
File:Ardumower_plot_sensors.jpg |Sensor measurement values&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Starting the mower=&lt;br /&gt;
&lt;br /&gt;
To start the mower, you need to add a button and a buzzer:&lt;br /&gt;
&lt;br /&gt;
 pinButton —o Button o— GND (button for ON/OFF)&lt;br /&gt;
&lt;br /&gt;
 pinBuzzer —o Buzzer o— GND (Piezo buzzer)&lt;br /&gt;
&lt;br /&gt;
Now, press the button as long as you hear the beeps:&lt;br /&gt;
&lt;br /&gt;
Mode (press button for x beeps):&lt;br /&gt;
 1 beeps : Normal mowing (using blade modulation if available)&lt;br /&gt;
 2 beeps : Normal mowing (without blade modulation)&lt;br /&gt;
 3 beeps : Drive by model remote control (RC)&lt;br /&gt;
 4 beeps : Drive without mowing&lt;br /&gt;
 5 beeps : Find perimeter and track it&lt;br /&gt;
&lt;br /&gt;
=Error counter / error beeps=&lt;br /&gt;
If there's a communication problem or another serious problem, the error counter increases. The error counter can be monitored via pfodApp. Additionally, the robot mower will beep when started.&lt;br /&gt;
&lt;br /&gt;
==I2C bus / error beeps==&lt;br /&gt;
Several components (Arduino Nano, RTC, IMU, etc.) are communicating via the I2C bus (SDA/SCL wires). These wires should be very short (maybe even twisted) and they should be far away from DC converter and motor drivers. If there's a communication problem, the error counter will increase and robot will beep when started. The error counter can be monitored via pfodApp.&lt;br /&gt;
&lt;br /&gt;
=Config files=&lt;br /&gt;
You can adapt the Ardumower code to your own robot mower hardware using the config file:&lt;br /&gt;
* config.h (old v9.0.3)&lt;br /&gt;
* mower.cpp (SVN version)&lt;br /&gt;
&lt;br /&gt;
Config files translate the commands of the main program into the specific hardware (i.e. actuators and sensors) - that allows us to adapt the main program to different robot mowers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Ardumower_config_files.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
The main program wants to drive the left wheel motor with speed 100. The chosen robot config file is called by the main program with this command: &lt;br /&gt;
 setActuator(ACT_MOTOR_LEFT, 100)&lt;br /&gt;
&lt;br /&gt;
The actual config file will execute this command by calling the specific motor driver:&lt;br /&gt;
 setL298N(pinMotorLeft, pinMotorLeftPWM, 100)&lt;br /&gt;
&lt;br /&gt;
To enable a sensor, remove the comment of that line. To disable a sensor, comment the line with a double slash (//).&lt;br /&gt;
&lt;br /&gt;
==pfodApp==&lt;br /&gt;
The configuration of the robot mower can be set via Android phone ([http://wiki.ardumower.de/index.php?title=Bluetooth pfodApp]). &lt;br /&gt;
&lt;br /&gt;
Important: If you flashed a new version, reset all settings via pfodApp once (Settings-&amp;gt;Factory reset). This will delete all existing settings. Old settings can produce malfunction if the internal settings format has changed.&lt;br /&gt;
&lt;br /&gt;
=Further links=&lt;/div&gt;</summary>
		<author><name>Autega</name></author>	</entry>

	<entry>
		<id>https://wiki.ardumower.de/index.php?title=Arduino_first_steps&amp;diff=1885</id>
		<title>Arduino first steps</title>
		<link rel="alternate" type="text/html" href="https://wiki.ardumower.de/index.php?title=Arduino_first_steps&amp;diff=1885"/>
				<updated>2015-04-23T21:01:25Z</updated>
		
		<summary type="html">&lt;p&gt;Autega: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
If you have never worked with Arduino before, this page describes how to &amp;lt;b&amp;gt;start with your Arduino&amp;lt;/b&amp;gt; that you can purchase via the [https://www.marotronics.de/index.php?k=7 shop] [[File: shopping.png|link=https://www.marotronics.de/index.php?k=7]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All you need to run the example below is:&lt;br /&gt;
* One Arduino Nano (or Arduino Mega2560)&lt;br /&gt;
* One USB cable&lt;br /&gt;
 [[File: Arduino nano usb cable.jpg|300px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;1. Attach the Arduino to your computer&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 Using an USB cable, attach the Arduino (Arduino Nano or Arduino Mega) to your computer as shown below.&lt;br /&gt;
 &amp;lt;gallery&amp;gt;&lt;br /&gt;
 File: Arduino nano usb connected.jpg|Arduino Nano connected via USB&lt;br /&gt;
 File: Arduino atmega2560 usb connected.jpg|Arduino Mega 2560 connected via USB&lt;br /&gt;
 &amp;lt;/gallery&amp;gt;&lt;br /&gt;
 You may need to install a driver for your Arduino:&lt;br /&gt;
*  Arduino Nano: Click [http://forum.diamex.de/attachment.php?attachmentid=65&amp;amp;d=1346742303 here] to download 'FTDI CDM 2.08.24'&lt;br /&gt;
   Note: Do NOT use the newest FTDI drivers as they may make your Arduino malfunction). Here are the steps to remove any newer driver:&lt;br /&gt;
   1. In Windows, choose 'Computer-&amp;gt;Properties-&amp;gt;Extended system settings-&amp;gt;Hardware device settings'&lt;br /&gt;
   2. Set 'Should Windows install drivers automatically?' to 'NO'&lt;br /&gt;
   3. Activate 'Never install drivers via Windows Update'&lt;br /&gt;
   4. Run [http://www.ftdichip.com/Support/Utilities.htm CDM Uninstaller]&lt;br /&gt;
   5. Click 'Add', then 'Remove Devices'&lt;br /&gt;
   6. Restart your computer&lt;br /&gt;
   7. Re-plug Arduino Nano, now Windows should ask for driver installation, and you can choose the correct driver version (2.08.24)&lt;br /&gt;
*  Arduino Mega 2560: &lt;br /&gt;
   1. Download the Arduino development software (link in next section below) to your computer&lt;br /&gt;
   2. Navigate to and select the driver file named &amp;quot;arduino.inf&amp;quot;, located in the &amp;quot;Drivers&amp;quot; folder of the Arduino Software download.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;2. Download&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 Click here to download the Arduino development software (v1.6.3) to your computer &lt;br /&gt;
 (Windows users should download the 'Installer' version on that page):&lt;br /&gt;
&lt;br /&gt;
 [[File: Arduino symbol small.jpg |link=http://arduino.cc/en/Main/Software#toc3]]  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;3. Install&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 After the download completed, install the Arduino development software on your computer:&lt;br /&gt;
 For Windows users, double click the downloaded file ('arduino-1.6.3-windows.exe') in your&lt;br /&gt;
 Windows file explorer to run the installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;4. Run&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 After the installation completed, run the Arduino development software on your computer &lt;br /&gt;
 by double clicking the 'Arduino' symbol on your Windows desktop.&lt;br /&gt;
&lt;br /&gt;
 [[File: Arduino_start_symbol_small.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;5. Choose blink example&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 After the Arduino development software has started, choose the menu, &lt;br /&gt;
 and click on 'File-&amp;gt;Examples-&amp;gt;Basics-&amp;gt;Blink'. This will load the Arduino blink example.&lt;br /&gt;
&lt;br /&gt;
 [[File: Arduino ide blink example.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;6. Choose correct board type&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 Via the menu, click on 'Tools-&amp;gt;Board-&amp;gt;Arduino Nano' to choose your Nano board &lt;br /&gt;
 (or Arduino Mega 2560 if you want to use a Mega board). &lt;br /&gt;
&lt;br /&gt;
 [[File: Arduino ide choose board.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;7. Choose correct USB serial port&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 Via the menu, click on 'Tools-&amp;gt;Port', and choose the detected USB serial port.&lt;br /&gt;
&lt;br /&gt;
 [[File: Arduino ide choose port.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;8. Upload the blink example&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 Click on the 'Upload' symbol to upload the blink example to your Arduino. &lt;br /&gt;
&lt;br /&gt;
 [[File: Arduino ide upload.jpg]]&lt;br /&gt;
&lt;br /&gt;
 After the code is uploaded, your Arduino will start to blink!&lt;br /&gt;
&lt;br /&gt;
 [[File: Arduino nano blink example.gif]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Congratulations!&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 You have just programmed your first Arduino!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Now let's look a little bit closer at the above blink code to understand it:&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt; &lt;br /&gt;
 The Arduino has several pins, each of them has a number.  As shown below, Pin 13 is already (internally) connected to the on-board LED:&lt;br /&gt;
&lt;br /&gt;
 [[File: Arduino nano pinout.jpg|300px]]&lt;br /&gt;
&lt;br /&gt;
 Each pin can be configured as either &amp;lt;b&amp;gt;INPUT&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;OUTPUT&amp;lt;/b&amp;gt; depending on wheter you want &lt;br /&gt;
 to measure or control that pin : &lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background-color: lightgrey; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 INPUT   means that you can read (or measure) that pin. The measurement can be either ON &lt;br /&gt;
 (there is voltage on that pin)  or OFF (there is no voltage on that pin).&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background-color: lightgrey; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 OUTPUT   means that you can write (or control) the voltage of that pin.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 In the blink example above, we are using the LED pin (pin 13) that is already connected to an LED. &lt;br /&gt;
 Because we want to control that pin, we are configuring it as &amp;lt;b&amp;gt;OUTPUT&amp;lt;/b&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background-color: lightgrey; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 pinMode(13, OUTPUT);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Now let's see how we can turn ON or OFF the LED using an Arduino command. This command will turn ON the voltage for pin 13:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background-color: lightgrey; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 digitalWrite(13, HIGH);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 And consequently this command will turn OFF the voltage for pin 13:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background-color: lightgrey; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 digitalWrite(13, LOW);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 Let's see how we can wait one second between the ON and OFF toggling. This command will wait (halt) &lt;br /&gt;
 the program for one second (=1000 milliseconds):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background-color: lightgrey; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 delay(1000);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 So let's look at the complete blink program again:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background-color: lightgrey; border: solid thin grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 void setup(){&lt;br /&gt;
   pinMode(13, OUTPUT);      // we want to control pin 13 &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 void loop(){&lt;br /&gt;
   digitalWrite(13, HIGH);   // pin 13 will go HIGH (voltage ON)&lt;br /&gt;
   delay(1000);              // wait one second (=1000 milliseconds)&lt;br /&gt;
   digitalWrite(13, LOW);    // pin 13 wil go LOW (voltage OFF)&lt;br /&gt;
   delay(1000);              // wait one second (=1000 milliseconds)&lt;br /&gt;
   // ...now everything repeats                           &lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;How to go further...&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
 Now you can try to upload the [http://wiki.ardumower.de/index.php?title=Ardumower_PCB Ardumower code] the same way as you uploaded the blink example!&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;nbsp;&lt;br /&gt;
 &amp;amp;nbsp;&lt;br /&gt;
 &amp;amp;nbsp;&lt;br /&gt;
 &amp;amp;nbsp;&lt;br /&gt;
 &amp;amp;nbsp;&lt;/div&gt;</summary>
		<author><name>Autega</name></author>	</entry>

	</feed>