1- I want to play an audio, example when a car approaches the parking gate it plays an audio like(Well come to the automated parking system, you can park at slot number one, thank you),
incase their is no available parking space an audio will played (well come to the automated parking system, sorry there is no available parking space, thank you).
2- I want to place an LED in front of the gate, so when a driver see a RED indicator it means their is no available parking space. While if he saw GREEN indicator means their is available parking space.
Please i want you to advise me, guide me, how to write such arduino code, circuit diagram and schematic diagram.
You appear to have a model of the car park and some hardware including an arduino uno, sensors and display with some data. So it looks like a lot of the development is already there. Now you are asking some basic question, say about integrating a led or sound. The led is trivial. Creating a custom audio message may require much more work and a Uno may not be ideal. You may be able to integrate an mp3 type player module/SD card reader with pre-formatted messages. I suppose the first activity is to create a schematic diagram of what is already there, if that does not yet exist, then understand the existing code.
You have asked for help to do something that you appear to already have done. Read the forum guide and post the bits that are missing to convey an understanding of your requirements
The basic information i need is, how to re-write the code that will play an audio, when a car approaches the gate, specify the available parking space and when there is no available parking space it should play an audio for that. I am playing the audio without SD card.
But, i know how to encode the audio and upload it to the arduino. Here is the source code
Good, thanks. But for the next times, you don't need to delete the posts, just edit them by clicking on the "pencil" button below them. Deleted posts are still visible and if you do it several times you'll clog the topic. Thank you.
Nice frizzy picture but I have a hard time reading frizzys as they miss a lot of things and are a poor substitute for a schematic. An annotated schematic as asked for in post #6, that would save asking a lot of questions.