Skip to content

pichim/PM2_PES_Board_Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://www.printables.com/de/model/516177-universal-spur-gears-collection-module-15

PM2 PES Board, Hardware and Driver Documentation

Michael E. Peter Michael Wüthrich Maciej Szarek
[email protected] [email protected] [email protected]
TE 307 TE 301 TE 302

Table of Contents

  1. Course Setup

  2. Hardware

  3. Tips

  4. Workshops, Solutions and Examples

  5. Links

Course Setup

In order to be able to complete the course, one must first register on the following platforms and obtain the appropriate tools. All the information needed to start the course can be found in General Info.

This document covers all the information about:

Hardware

During the course, we will use the Nucleo-F446RE board from ST in combination with the PES board designed and developed at ZHAW. The basic hardware kid that students receive includes a variety of sensors and actuators for practical applications.

IMPORTANT NOTE:

  • When working with hardware (connecting, reconnecting etc.), it is recommended that all power sources are disconnected. This is a general safety measurement! So for us, the Nucleo is disconnected and the PES Board Power Switch is OFF when ever we change someting at the hardware setup.
  • The USB cable should only be connected to the computer after the power switch has been switched on.
  • Various Nucleo boards, PES Borads and even laptops have been damaged in the past.

Nucleo F446RE

The Nucleo-F446RE is a microcontroller development board featuring the STM32F446RET6 microcontroller from STMicroelectronics. It provides a versatile platform for prototyping and developing embedded systems, offering a wide range of peripherals, connectivity options, and compatibility with the Arduino and ST Morpho ecosystems.

Nucleo F446RE Overview
Nucleo F446RE Overview

Arm MBed provides a dedicated platform with essential information about the development board. Here you can find technical specifications and the pinmap.

PES Board

The PES Board is a hardware board with additional sensors, devices and power electronics to work in combination with the Nucleo F446RE. It provides multiple pinouts for:

  • 3 DC-Motor (brushed)
  • 4 Servos (these occupy the 4 DI/O if used)
  • 4 DI/O, 3.3V (5V tolerant)
  • 4 AI/O, 3.3V (5V tolerant)
  • 3 Encoder-Counter
  • 9-axis IMU (accelerometer, gyroscope, magnetometer)

IMPORTANT NOTE:

  • Using the PES Board with power ON and hardware running while connected to your computer/laptop happens at your own risk. There was a case where the students laptop was damaged in the past.
  • The voltage of the DO (servos) is set via the switch behind the charging socket: 3.3 V or 5 V
  • Motor encoder soldering can be wrong. Do not assume that if you plug in one motor and everything works you can then also use the same connections with different motor. You have to make sure that the physical rotation is according to your assumption and that a positive input leads to a positive change of increments.
  • Depending on the PES Board version DCMotor M3 rotation direction might be inverted.
  • Depending on the PES Board version the Pin map might differ.

Batteries

The kit includes two sets of 6V battery packs, which can be connected in series to provide 12 volts. The battery packs need to be connected to the back of the PES Board. The picture below illustrates the proper battery connection required to get a total voltage of 12V.

Battery Packs
Battery Packs

The batteries enables the board to be powered independently of the connection to the computer/laptop, eliminating the need for a connection via the Mini USB cable. The board continues to receive a stable 5V supply while offering the option to use a 12V supply for the power electronics of the motors. To activate the external battery power, switch the slider on the PES Board to the ON position.

Single battery pack - if you are using a single battery pack, the remaining pins need to be bridged. If only 6 V is used, this must be parameterised accordingly in the firmware when parameterising motion controller class.

Charging the Batteries

Using the Charger - if you connect the charger to the PES Board, the battery packs need to be connected. If the battery packs (2 packs for 12 volts or one pack and a jumper for 6 volts) are not connected when you plug in the charger, the PES Board will be destroyed.

Charging batteries - the battery packs are only charged when the PES Board circuit breaker is set to OFF.

Usage while charging - don't use the PES Board while it is charging.

Resources

All additional technical information such as schematics and pin maps for the PES Board can be found in a folder docs/datasheets/pes_board_data/. Also included there are CAD files of the combined Nucleo F446RE and PES Board in .3dxml extensions (for 3Dexperience).

Pheripherals

PES Board Pheripherals
PES Board pheripherals

Pin-Mapping

Hardware Kit

  • 2x Battery pack 6v / 2300mAh with charger
  • 1x Servo – REELY S-0090
  • 1x Servo – FUTABA S3001
  • 1x LED green with resistor 2200/600mW/1%
  • 1x Distance sensor SHARP GP2YOA41 analog 300mm with cable
  • 1x DC Motor POLOLU (different gear ratios) D = 20 mm/ l = 43 mm/ 12V with encoder POLOLU 2.7 – 18V
  • 1x Mechanical Button
  • 1x Ultrasonic sensor GROVE ULTRASONIC RANGER V2.0 with cable

Hardware Tutorials

The following links contain the hardware tutorials. The documents contain specifications and technical information about the hardware and information about how to use the hardware. The tutorials cover the software drivers, specific calibration procedures, controlling actuators and retrieving measurements from the sensors.

Tips

Tips that you might find useful can be found in the document Tips. Here you can find information about:

Workshops, Solutions and Examples

The following links contain the workshops instructions:

And here you find all the solutions, as well as some additional examples:

In the folder (docs/cad/WS2) and (docs/cad/WS3) you will find the printable files needed to build the demonstration model for workshop 2 and workshop 3. For workshop 3, you need to edit the parts: rack and gear wheel because they are only available in STL print-ready format. Editing can be done in Prusa Slicer, which offers the possibility of minor modification.

Additional Information

Weblinks

Some General Links

Hardware Links

C++ Online Compiler and Example Projects (at your own risk : - ))

Online C++ Compiler

C/C++ for Visual Studio Code

The following links are kind of older projects, but they might help you to get started with C++ in Visual Studio Code.

Example Projects:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages