Skip to content

boltrobotics/devices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Provides drivers for USART, USB, 2-3 wire motors, time functions on ESP32 / AVR / STM32 / X86.

Build

Set up the build following an example from cmake-helpers project.

x86

The class creates two serial devices using socat utility. PseudoTTY is useful for testing serial client or server. The unit tests for Usart class use it for similating serial ports.

The class provides an interface for communication over serial connection. Each read/write is configured to time out if the operation doesn't complete within a specified window. The code uses Boost ASIO library.

usart_test.cpp contains unit tests for Usart class.

Class functionality is similar to Usart but using termios library.

usart_termios_test.cpp contains unit tests for Usart class.

STM32

The class provides an interface to transfer data over USB connection.

The class provides an interface for communication over serial connection.

The class can drive a motor that uses three wires for direction and speed control.

The class can drive a motor that uses two wires for direction and speed control.

AVR

The class can drive a motor that uses three wires for direction and speed control.

Common Code

The class calculates range in millimeters from an ADC sample of MaxSonar ultrasonic range finder.

The class counts the number of clicks that a virtual wheel moved forward and backward.

About

Provides drivers for USART, USB, 2-3 wire motors, time functions on ESP32 / AVR / STM32 / X86

Resources

License

Stars

Watchers

Forks

Releases

No releases published