Neopixel ring colour picker App using Flutter through NodeMCU

This is an App developed in Flutter to set your desired colour on Neopixel ring from a mobile App. Circuit is done as shown in the following diagram.

Download the NeoPixelColorPicker library from the following link. Unzip and copy the downloaded library to your Arduino libraries folder.

NeoPixelColorPickerDownload

Restart the Arduino software and open the example program from File ->

Read More
NodeMCU as WiFi Access Point, Arduino program

Upload the following program to your NodeMCU.

#include <ESP8266WiFi.h#include <ESPAsyncTCP.h#include <ESPAsyncWebServer.hconst char index_html[] PROGMEM = R"rawliteral( <!DOCTYPE HTML<html<head<meta name="viewport" content="width=device-width, initial-scale=1"</head<body<H3WELCOME TO ESP8266 WEB SERVER </H3</body</html)rawliteral"; String header; const char *APSSID = "ESP8266-WEB-SERVER"; const char *APPSK = "123456789"; AsyncWebServer server(80); AsyncClient Client; AsyncWebServerRequest request(&server, &Client); void setup() { Serial.begin(115200); WiFi.softAP(APSSID, APPSK); IPAddress IP = WiFi.softAPIP(); Serial.println(IP); server.on("/", HTTP_GET, [=](AsyncWebServerRequest *request) { request -send_P(200,
Read More
Audio player using VS1003, SD card and Arduino Mega, Circuit and program

After completing the circuit, upload the following program to Arduino Mega. Program tested and worked good on Arduino 1.8.10. Change the value of “audioName” to the name of audio file to be played in the SD card. Audio files should be stored in the SD card as shown in the following image.

#include <SPI.h#include <SD.h// SCI Registers const uint8_t SCI_MODE = 0x0; const uint8_t SCI_STATUS = 0x1; const uint8_t SCI_BASS = 0x2;
Read More
VS1003 voice recording and storing in SD card for indefinite time using Arduino Mega, Circuit and program

Upload the following program to Arduino Mega. Open the serial monitor. Now, press the push button switch provided in the circuit. Recording will start and stop in alternate presses of push button switch. Once recording started, press the push button switch again to stop recording. Speak something through the MIC. Voice will be recorded in SD card as “wavFile6.WAV”. Take the SD card from the card reader and play the recorded file on computer.

#include <SPI.h#include <SD.h//#include "SdFat.h" //SdFat SD;
Read More
Display “HEX” data of audio “WAV” file from SD card using Arduino Mega

After completing the circuit, upload the following program to your Arduino Mega. A file named “wavFile6.WAV” should be there in your SD card.

//#include <VS1003ESP12.h//#include <ESP8266WiFi.h#include <SPI.h#include <SD.hconst int xcsPin = A3; const int sdCs = 10; File myFile; char fileName[] = "wavFile6.WAV"; byte data[4]; void disableVS1003(void) { digitalWrite(xcsPin, HIGH); } void setup () { pinMode(sdCs, OUTPUT); // digitalWrite(sdCs, HIGH); // initiate SPI SPI.begin(); // initiate a serial port at 57600 Serial.begin(115200);
Read More
VS1003 voice recording and storing in SD card for definite time using Arduino Mega, Circuit and program

VS1003 voice recording program tested on Arduino version 1.8.10.

#include <SPI.h#include <SD.h//#include "SdFat.h" //SdFat SD; SPIClass mySPI; // VS1003 SCI Write Command byte is 0x02 #define VS_WRITE_COMMAND 0x02 // VS1003 SCI Read COmmand byte is 0x03 #define VS_READ_COMMAND 0x03 // Size of the "wav" file set to 100*512 bytes including the header files const unsigned char RIFFHeader0fn[] = { 'R' , 'I' , 'F' , 'F' , // Chunk ID (RIFF) 0xF8,
Read More
Arduino MP3 player using VS1003, SD card module and Arduino UNO

Circuit is done as shown in the diagram. Volume can be controlled using 10K POT.

Program

VS1003-masterDownload

Copy and paste the program to your Arduino libraries folder. Compile and upload the example code to your Arduino board. A file named “2.mp3” will be played in my code. A file named “2.mp3” should be there in your SD card. Otherwise, it will give an error.

Read More
X