Geschwindigkeitsmessstrecke mit Arduino: Unterschied zwischen den Versionen

Aus HSHL Mechatronik
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 33: Zeile 33:


==== LCD Display Blue with I²C  ====  
==== LCD Display Blue with I²C  ====  
The LCD display we will use is QAPASS LCD I²C. This is a variant of the normal LCD display. It is combined with an [https://de.wikipedia.org/wiki/I%C2%B2C I²C] module. This will enable us to add further feature to the system.  
The LCD display we will use is QAPASS LCD I²C. This is a variant of the normal LCD display. It is combined with an [https://de.wikipedia.org/wiki/I%C2%B2C I²C] module <ref>https://de.wikipedia.org/wiki/I%C2%B2C </ref>. This will enable us to add further feature to the system.  
The next development of I²C is I³C. Both I²C and I³C were designed as "Controller" and "Target" bus system (previous master & slave bus concept). The two signal lines for I²C are SCL: Serial Clock and SDA: Serial Data line.
The next development of I²C is I³C. Both I²C and I³C were designed as "Controller" and "Target" bus system (previous master & slave bus concept). The two signal lines for I²C are SCL: Serial Clock and SDA: Serial Data line.
But we have to consider the [[Inter-Integrated_Circuit_Bus_(I2C)#:~:text=The%20I%202%20C%20bus%20is%20not%20used%20for%20data%20transmission%20over%20long%20distances.%20Common%20connections%20are%20in%20the%20range%20of%20less%20than%20one%20meter.%20One%20reason%20for%20this%20is%20the%20susceptibility%20of%20the%20bus%20to%20interference%20with%20longer%20lines%2C%20which%20is%20why%20it%20is%20usually%20only%20used%20within%20a%20shielded%20device.|distance]] of the data transmission while using the I²C. The LCD display is functional. It is receiving messages and displaying them. Next step will be optimizing the sensor data and making a robust system.
But we have to consider the [[Inter-Integrated_Circuit_Bus_(I2C)#:~:text=The%20I%202%20C%20bus%20is%20not%20used%20for%20data%20transmission%20over%20long%20distances.%20Common%20connections%20are%20in%20the%20range%20of%20less%20than%20one%20meter.%20One%20reason%20for%20this%20is%20the%20susceptibility%20of%20the%20bus%20to%20interference%20with%20longer%20lines%2C%20which%20is%20why%20it%20is%20usually%20only%20used%20within%20a%20shielded%20device.|distance]] of the data transmission while using the I²C. The LCD display is functional. It is receiving messages and displaying them. Next step will be optimizing the sensor data and making a robust system.

Version vom 1. Juni 2023, 08:58 Uhr


Author: Syed Rafsan Ishtiaque
Category: Part of Main Internship
Duration: 02.05.2023 - 31.05.2023
Supervisor: Prof. Dr.-Ing Ulrich Schneider


Objective

Developing the speed measuring unit for any car project

Hardware

Sensor

Sharp 2D120X F 09

The Sharp distance measuring sensor is used to determine the speed/ velocity of the car unit. In this case, two identical sensors were used. According to the manufacturer SHARP Referenzfehler: Für ein <ref>-Tag fehlt ein schließendes </ref>-Tag.. This will enable us to add further feature to the system. The next development of I²C is I³C. Both I²C and I³C were designed as "Controller" and "Target" bus system (previous master & slave bus concept). The two signal lines for I²C are SCL: Serial Clock and SDA: Serial Data line. But we have to consider the distance of the data transmission while using the I²C. The LCD display is functional. It is receiving messages and displaying them. Next step will be optimizing the sensor data and making a robust system.

Future development

Instead of using a led based display we can implement MQTT protocol to get the end result from the sensor in our smartphone with help of raspberry pi. That will allow to record the result more conveniently. During the implementation of MQTT protocol, the raspberry pi module will work as MQTT broker and both Arduino and Smartphone will be MQTT client. The broker will receive sensory data from the Arduino (1st client) and then it will forward the message to the smartphone (2nd client). As the system will only be used to receive the data collected by the sensor and processed by the arduino and not to control the sensor, it will be uni-directional; that means we will opt out the part to control any sensor from the smartphone application.

LCD Display Holder

To mount the LCD on the main structure, we have designed a holder in Solid-Work and printed it in 3D printer. The holder model can be updated based on requirements.

Source Code

The arduino code for the sensor and LCD displays are developed and implemented. We used median filters to cancel out/ limit the noise. We will made two separated arrays for the median filter. For each array there will be separate index pointers. So the two sensors data will be filtered out separately, in that way one's noise will not affect the other.


Literature