ADA programing, well this is 1st time experience with ADA language for me. we all knows its powerful high level language, just tasted a bit with my project. As 1st step I listed out the boards in my inventory to check the compatible board to use with ADA. I had couple of Micro:bit BBC boards so thought to use them.
Getting Start with ADAI started from here [https://www.adacore.com/community], download the required tools and installed, I suppose to make tutorial on this getting start with ADA unfortunately did not happen. Then I tried sample program "Scrolling Text" for BBC:micro:bit.
The next step started thinking about the idea /concept. I was working on some Radar application and suddenly the thought came to integrate RADAR into ADA. Just see "R ADA R" inside it has ADA :) proud to be founder for this line.
Also I had requirement to use wireless connectivity (BLE) so I looked into the Github [https://github.com/AdaCore/Ada_Drivers_Library] Great place to start with.
Smart Entry GateAfter finalize the boards my idea is tuned and get into final shape called "Smart Entry Gate" Done some experiments with RADAR before finalizing the idea.
The reason for this idea is, we have have many sensors but Radar is reliable then other sensors. Also its reduce the cost by not going with camera based expensive sensor. This Smart Entry gate counts incoming and out going vehicle and calculates available parking slots. This information can be accessed via phone (Ibeacon). Parking slots information transmitted in Beacon data.
I have taken the servo example and tested then integrated the display. For wireless I found Beacon example. I modify the BLE Beacon packets as per my requirement. Finally I integrated all the code.
BlocksThe signals from Radar are solder in the general purpose PCB. Also the PWM out for the Servo is taken from there. The radar board has to be removed from the actual development kit. Also the board resistor R11 should be removed to operate in autonomous mode. Pin 11 and Pin 5 is used from Microbit.
The design of entry block is designed with Balsa woods and Hot Glue Gun. The board is powered with 5V via usb cable.
How it worksThis Radar sensor detects the moving object or any motions by the algorithm which runs inside the chip (Autonomous Mode). we gets two out put signal 1. Target out and Phase. The target gives us the information of motion. If motion is detected we gets LOW and GREEN LED glows. The another pin gives use the Target Direction. If the object moves towards the chip we gets High on the PIN (RED LED OFF), if the object moves opposite direction we gets LOW on the pin and RED LED glows.
Using this I made a logic to detect the incoming cars and out going cars.
if MicroBit.IOs.Set(11) and MicroBit.IOs.Set(5) and bIsLeave then
Count_value := Count_value - 1;
Total_Count_value := Total_Count_value +1;
Microbit.Display.Display(Total_Count_value'Image);
bIsLeave := False;
end if;
The Gate opens when the car arrives at the entrance and closes after left or timeout happens.
The counts are calculated and sends in Beacon packets. The other end have modified the BLE Android app to showcase the parking information on the IBeacon list. Hope this idea can be implemented in Office parking, Shopping Malls, schools and etc.
The working video demonstration is show in here
Comments