Squirrel Noise Sensor and Map of Dundee Botanical Gardens
by KayOlv in Circuits > Arduino
23 Views, 0 Favorites, 0 Comments
Squirrel Noise Sensor and Map of Dundee Botanical Gardens

How to make a map of Dundee Botanical Gardens and Noise sensor squirrel that dims and brightens neopixels based on input . As well as OLED screen which connects with Ultrasonic sensors
Supplies




Main Map:
1x Wemos LOLIN D1 Mini ESP8266
1x (Arduino Uno for demostrasion)
4x Neopixels
1x Mini Breadboard
Power:
Either ; 1/2x Powerbank or Laptop port and corrosponding Wires
Or
1x Battery Clip Connectors (JSGHGDF PP3 9V Battery Clip Connector)
Noise Sensor:
1x Adafruit Noise Sensor (MAX9814)
1x Wemos LOLIN D1 Mini ESP8266
1x 1x Battery Clip Connectors (JSGHGDF PP3 9V Battery Clip Connector)
Presentation:
MDF 3mm Boards
3D printer and Wood Filament
Step Up the Noise Sensor



The sensor above has had the wires soldered to the D1 mini , noise sensor and voltage convertor due to the limited amount of space in the housing , as well as to prevent any of the wires becoming disconnected.
The components used for this set are a voltage converter which has a ground and 5v wire soldered to the noise sensor and D1 mini , using a copper 'breadboard' to reduce the overall size of the circuit.
The Adafruit MAX9814 microphone is being used as a noise sensor and records and prints the noise levels being picked up in the sounding areas , which is then transmitted to MQTT.
In order to connect the microphone to the D1 mini a wire is soldered between the OUT pin on the microphone and pin A0 on the chip.
A 9v battery is connected to the voltage converter then inserted into the 3D printed squirrel 'topher'.
The voltage converter was connected to a battery and a volt meter and the brass screw was adjusted till the reading on the voltmeter was 5v.
Code for the Noise sensor.
'Topher'


'Topher' was a STL file downloaded off of thingiverse then edited in Rhino using apps anywhere in order to create a hole in the bottom to allow the components to fit.
The file was then printed using a Wood filiament , with a 0.6mm nozzle at 0.2mm quality, with lightning infill (very fast and easy to clear out).
The tree supports were removed and the model was sanded down.
Coding Development
Project development showing code
Map and Neopixels


Map is laser cut 2mm MDF with a map of the gardens engraved. With 4 circles cut out for the neopixels and a square in the bottom left corner for a OLED screen.
3 of the neopixels were coded to be consistent as a imitation of what the final product would look like and were connected to a Adruino uno . The neopixels were soldered in place and connected to pin 7 on the arduino
https://dmail-my.sharepoint.com/:u:/g/personal/2567377_dundee_ac_uk/ET7Twg-zPNpNuRXFDoitYJcBdJQ-q5Xd-MUUzqZKorMT7A?xsdata=MDV8MDJ8MjU4NDU1NUBkdW5kZWUuYWMudWt8YjEzYzA3YzMzZWQ2NDRiZmZjOGIwOGRkNmQ0ZGMyZGR8YWUzMjMxMzkwOTNhNGQyYTgxYTY1ZDMzNGJjZDkwMTl8MHwwfDYzODc4NjkwMjkyMjA0OTk2NnxVbmtub3dufFRXRnBiR1pzYjNkOGV5SkZiWEIwZVUxaGNHa2lPblJ5ZFdVc0lsWWlPaUl3TGpBdU1EQXdNQ0lzSWxBaU9pSlhhVzR6TWlJc0lrRk9Jam9pVFdGcGJDSXNJbGRVSWpveWZRPT18MHx8fA%3d%3d&sdata=QU5kOVRwcmpmKzluSFdFQmQvaEN1WmlGTkgxbXVmY3ZNZTZnS3NpLzdEZz0%3d
M



Code for neopixel and OLED screen
The D1 mini is subcribed to the topic 'Monkeynoise' on MQTT and is recieving the output of the noise sensor , which is then converted to a string , and by using if statements with ranges the neopixel connected will change depending on the recieved inputs.
The OLED screen is supposed to display the total amount of visitors in the garden that connects with Harris' code , found on https://www.instructables.com/Ultrasonic-People-Counter-MQTT/