Skip to content

EugenWiens/rc-car-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RC Car Logger system

rc car logger ci CodeFactor

General

The RC Car Logger should help to measure following informations

  • velocity
  • battery voltage
  • power consumption

This values are measured and recorded. The recorded data can be downloaded from the web ui. The drag indicators min and max can be read by the system ui and web ui.

System Overview

The following picture shows the system overview.

overview

All boards and schilds are described on the following chapters.

GPS BN 220

BN_220

The GPS receiver is based on the BN220. The RC-Car-Logger uses the UART to read the data provided by the BN220.

GPS BN220 WMOS D1 Mini color of the included cable
VCC VCC red
GND GND black
Tx D4 white
Rx D3 green

INA 226

INA_226

INA_226_backside

The INA226 is a TI based board to measure the voltage of the battery and the current consumed by the car. The INA226 is connected by I2C to the WMOS D1 Mini. The I2C address of the board is 0x45, therefore are A0 and A1 connected to VCC.

INA 226 WMOS D1 Mini
VCC VCC
GND GND
SCL D1
SDA D2

The shunt resistor is modified to 0.001 Ohm.

OLED Shield

OLED_SCHILD OLED_SCHILD_backside

The OLED Schild Display V2.0 for Wemos D1 Mini has a size of 0.66" with the resolution 64x48. The display is control over I2C with the address 0x3C. On the board are also two buttons, they are connected as following:

OLED Schild v2.0 WMOS D1 Mini
Button A D5
Button B D6

DC Power Schild v1.1.0

POWER_SCHILD

The input voltage must be in the range of 7-24V. The schild provide up to 1A on the output.

WEMOS D1 Mini

WEMOS_D1

Software

The software is designed to be modular, as far as the effort justifies it. It is possible to adjust the image to match your memory footprint by en- / disable the software components.

You have to adjust in the file platformio.ini the lib_deps list. The following overview should make it easier to decide which modules should be used.

software-overview

The platformio.ini is groped with comments based on the overview. You can remove the rc-car-logger module and the required library (At this point, 2021-07-05 there is a bug in platformio )

Pictures of the whole system

SYSTEM_OVERVIEW

SYSTEM_OVERVIEW

SYSTEM_OVERVIEW_STACK

CONNECTOR

Setup the Development System

This Project is based on platformio.io for the installation please follow the plug-in installation guide.

Flashing the firmware.bin

The espurna documentation describes the procedure in detail. Please follow the documentation espurna/flashing.