Cyber Drive Recorder Direction Indicator

by asatomomoka in Circuits > Arduino

342 Views, 4 Favorites, 0 Comments

Cyber Drive Recorder Direction Indicator

Cyber Drive Recorder Direction Indicator
en.drawio.png
IMG_20220915_192524.jpg

Implement the drive recorder function with the Spresense camera board

Works with tail lamps with automatic brake lamp function

The direction indication is linked by serial communication, so the front and rear of the bicycle can be connected neatly.

I was planning to measure the speed with GPS of Spresense, but it is not implemented

The body is made with a 3D printer.

Although it is for bicycles, the main unit is removable so that it can also be used in cars.

A laser is displayed on the road surface to let the vehicle know the width of the vehicle.

Detects braking with an acceleration sensor and blinks the brake lamp

And transform function! Deploys left and right with servo at startup

Supplies

main unit

  • Spresense main board
  • Spresense camera board
  • Spresense expansion board
  • WINGONEER 1.8 inch full color 128 x 160 SPI full color TFT LCD display module ST7735S 3.3V
  • ALITOVE WS2812B LED tape 1m 144 stations NeoPixel RGB TAPE LED 5050 SMD LED tape light pixel
  • SD card
  • IIC I2C Serial OLED LCD Display Module I2C SSD1306 White I2C OLED Screen Driver 0.91" DC 128x32 3.3V~5V for Arduino


Power supply unit

  • Mobile battery
  • switch


handle

  • 3 switches
  • connector


rear unit

  • Chinese Arduino Nano
  • Servo x 2
  • buzzer

Main Unit

IMG_20220828_104155_HDR.jpg
IMG_20220827_082748_HDR.jpg
IMG_20220822_194953.jpg
Dazzling Uusam-Hango.png


The camera is made movable. Also, make it detachable so that it can be used in a car.

Use connectors to connect with other units

Direction Indicator

IMG_20220824_084641_HDR.jpg

Display direction with LED tape

I was struggling to control it with the library for Arduino.

It seems that you need something for Spresense Click here

The forward indicator is made with the image of Knight Rider's sensor light.

Only uncles know about Knight Rider.

That hyung hyun, but it's moe that the light shines!

Since we want it to run all the time, we run the program on the sub-core side.

However, it becomes a different color or noise.

The cause seems to be incompatibility between the TFT display driver Adafruit_ST7735 and the LED tape

It improved when I stopped TFT and changed to OELD display.

Rear Unit

IMG_20220828_104343_HDR.jpg
IMG_20220709_162042.jpg

I am remodeling the tail lamp to cyber chic

When activated, the light will expand left and right with a servo

Cool... isn't it? Transformation is romantic!

The wider width makes it easier to see the direction indicator, so it's not a waste!

Serial Communication With Rear Unit


Communicate with the rear unit Arduino via serial communication

But here is the history of the struggle...

Connect TX from the main board and send it to Arduino's RX

However, although there is a sign that it is being sent, I can't send the text, and the numbers are useless...why?

The cause is that the TX on the main board is 1.8V, so it seems that the voltage is insufficient and the signal cannot be sent.


It seems that there is no level shifter. seriously

A Spresense expansion board was required. Without it, you can't do anything with just the main board!

I should have applied for the monitor from the beginning...

It costs 4000 yen

I tried to communicate with the purchased Spresense expansion board, but I could not send characters.

Apparently it needs to be 3.3V instead of 5V (Isn't the operating voltage of ArduinoNano 5V?)

After that, it went well, so I made it multi-core and retested ... it doesn't work

It seems that Serial2 cannot be used when multi-core is used. Spresense bug?

After all, it was avoided by using software serial

Drive Recorder

Just change the camera sample a little and save the image as a permanent file and you're done!

It was supposed to be, but I was greedy and bought a cheap display to add a preview function

I was able to display it for the time being, but the display was too slow and I could not use it for preview

Choose a fast display

Handle (direction Switch)

Copy of Switch.png
IMG_20220821_122847.jpg

Create with a 3D printer. The design was unexpectedly difficult, and I made a prototype five or six times.

By the way, I use [Tinkercad](https://www.tinkercad.com/), which is easy to handle even for beginners.

If you want the STL model, please comment and I will upload it

Connect the switch to the 4-terminal connector

Power Supply Unit

Dazzling Uusam-Hango.png

Powered by mobile battery

Since the expansion board does not have a power switch, put a switch on the power supply unit side

I cut the USB cable and put a switch on the way, but I have to be careful here

It seems that it is necessary to short-circuit the signal line when using it for power supply.

If it is not short-circuited, it is recognized as for data communication and cannot be supplied to the expansion board.

Notes on Spresense

  • Main board is 1.8V. cannot work with arduino
  • Digital input/output terminal is 6mA
  • Inserting Serial.begin(115200); in subcore freezes
  • Serial2 cannot be used when multi-core is used
  • Adafruit_ST7735 and sub-core are not compatible with LED tape
  • Accessing the SD card causes noise on the LED tape