Weather Based Music Generator
Help me by sharing this post

PREVIOUS POST       NEXT POST

Author Andrei
16/07/2019
how to make your own little Weather based Music generator. It's based on an ESP8266, kind of like an Arduino, and it responds to temperature, rain and light intensity from an LDR resistor. As the creator says, don't expect it to make entire songs or chord progressions. This project was posted by OttoNL and you can see the full post here. It is more like Generative Music people sometimes make with Modular Synthesizers. But it's a little less random then that, it does stick to certain Scales for instance.
For this you will need: AN ESP8266, 1250 mAh LiPo battery with JST connector from Adafruit, the BME280 Temperature, Humidity and Barometric Pressure Sensor, Arduino Rain Sensor' from eBay (HW-103?), 25K LDR, Some Resistors, Female Midi Connector (5 Pin Din) suitable for PCB mounting, Jumper Wires, Breadboard or some sort of Prototyping board and a computer.



As mentioned, he used the Adafruit ESP, but it should just work fine with a NodeMCU. He recommends the V2 version as he believes it fits a lot better on a breadboard and you can get them very cheap from eBay or AliExpress. he believes on a NodeMCU the pin Labeled D1 is actually GPIO5 for instance, so you always need a Pinout chart handy. Not a big issue at all, but just convenient for newbies they labeled the Adafruit one so clearly.

First off, we connect the BME280, because there are some variations in this model. As you can see from the pictures this one has the one big hole, but there are also some with 2 holes. You can see it has 4 In and Outputs, 1 for power, one for ground and a SCL and SDA. This means it communicates via I2C. Other models communicate via SPI. This might require a different Library or at least different code and different wiring. The S in SPI stands for Serial and I can't say if this will interfere with the Midi part of this project as that's also working via Serial connection.


Simply connect a Midi cable, make sure to set your Synth/Keyboard to respond to channel 1 or change the code and see if it works! Let's see and hear what you do with it. If you make changes, upgrades, tweaks (like to the Light sensor and Temperature values. Outside it might work better or worse then inside) anything.

Apart this post, if you have your own project and you need good quality PCBs, consider using the services of JLCPCB.com which will offer you quite good services, I use their services a lot of my PCBs.

Consider supporting ELECTRONOOBS on PATREEON.







Help me by sharing this post

PREVIOUS POST       NEXT POST





yt_link
insta_link
fb_link
twitter_link
Blog#85 - Music Generator


Last tutorial - RADIO CONTROLLER
Check here my last tutorial. I hope that you will like it. Keep up you guys!

last tutorial


ADVERTISERS
PCBWAY PCB service





Gearbest Alfawise U30 2.8 inch Touch Screen DIY Desktop 3D Printer - U30 EU Plug Black
Alfawise U30 2.8 inch Touch Screen DIY Desktop 3D Printer - U30 EU Plug Black only $$162.89

AFFILATE

Gearbest Creality3D CR - 10S 3D Printer - EU Plug Upgrade Version Coffee and Black
Creality3D CR - 10S 3D Printer - EU Plug Upgrade Version Coffee and Black only $$352.94

Gearbest Creality 3D Ender-3 V-slot Prusa I3 DIY 3D Printer Kit 220 x 220 x 250mm Printing Size - EU Plug Black
Creality 3D Ender-3 V-slot Prusa I3 DIY 3D Printer Kit 220 x 220 x 250mm Printing Size - EU Plug Black only $$153.84

Gearbest Alfawise U20 Large Scale 2.8 inch Touch Screen DIY 3D Printer - EU - U20 EU Plug Black
Alfawise U20 Large Scale 2.8 inch Touch Screen DIY 3D Printer - EU - U20 EU Plug Black only $$253.39