Intel-Edge-AI-SW-Developers-2nd-Platoon / platooning_bando_truck_999

The system that controls three or more vehicles by implementing platooning in a hub to hub environment
0 stars 3 forks source link

feat:Interface GP2Y0A21 and HC-SR04 on PACU #16

Closed simpleis6est closed 9 months ago

simpleis6est commented 9 months ago

Details: 1.Target board: STM32F429ZI 2.Hardware setting (GP2Y0A21) ir센서

3.Hardware setting (HC-SR04) image

The description and photos below show how to set up a project that combines two sensors.

4.MX setting

sonicgpio

timer

adc_set

ADC

-NVIC

nvic

TIM2 ADC1/2/3 USART3 Interrupt Enabled.

5.ADC calculate ADC value - To calculate the distance, the equation was calculated by actually measuring based on the graph shown in the data sheet and saving it in an Excel table.

excel

roby238 commented 9 months ago

Good