The forums are retiring and are now closed for new topics and comments. The existing content will remain online and accessible through 2020 to provide everyone the opportunity to save any relevant information. In the spring of 2021, these Community forums will be taken offline.

Search for FX Mini in Topics

need help writing Arduino sketch for Nano to Adafruit FX mini soundboard communications?

Hello everyone.  I am new here, and fairly new to arduino. Im an electrician/ communications tech by trade, but have only been working with code as a hobby for a few weeks (have wanted to learn this for a long time).  I am working on a project that would require an Motion sensor input to play an audio track at random, whilst illuminating a corresponding PWM LED. said LED should fade in sync with the audio file. ITs a robot of sorts that will detect movement and speak a random audio track.  Some nice (0-5) and some not so nice (6-12).  it will have a a diffused glow when on, blue when speaking nice, and red when speaking not so nice.  hence the audio input to act as an anologRead and output to the PWM's I know, a lot to take on for a noob.  but go big or go home.  I have put together what I thought was a good start sketch, but it doesnt even illuminate an LED, communicate with the soundboard, or serial link on the monitor. I think I am on the right track in regards to the parts and overall Idea.  And im pretty sure my sketch needs a lot of work, but i am trying. so here are the parts I had intended to use. (if im going down the wrong path, or you see another way, feel free to say so.  I expect some criticism, I can handle it) Arduino elegoo Nano V3.0, CH340/ATmega328p Adafruit Audio FX Mini soundboard w/o amp Adafruit Mono 2.5W Class D amplifier (PAM8302) Sodial mini IR motion sensor module, 3-pin LED's are undecided for finished product, but i was thinking RGB 6302's (5-7) speaker is an 8 ohm 2W power will be supplied by a small 3.7v lipo (thats the plan) My wiring idea should be easily discernible from the sketch, but i can draw my idea, and add it if need be. I did install the soundboard _library. but thats the only one (didnt think i needed others) Any and ALL help is greatly appreciated. the sketch... [code] /*   Menu driven control of a sound board over UART.   Connect UG to ground to have the sound board boot into UART mode */ #include #include #define SFX_TX 9      // Defines pin D9 as TX to FX Mini #define SFX_RX 10     // Defines pin 10 as RX to FX Mini #define PLAYING 11    // Connect to the ACT pin on the FX Mini #define SFX_RST 13   // Connect to the RST pin on the FX Mini SoftwareSerial ss = SoftwareSerial(SFX_TX, SFX_RX);  // Passes Software Serial to FX Mini SoftwareSerial mySerial(SFX_RX, SFX_TX); Adafruit_Soundboard sfx = Adafruit_Soundboard(&ss;, NULL, SFX_RST); // can also try hardware serial with // Adafruit_Soundboard sfx = Adafruit_Soundboard(&Serial1;, NULL, SFX_RST); int incomingAudio;            // Audio input assigned from FX Mini Right audio output int RedLED = 5;         // the PWM pin the Red LED is attached to int BlueLED = 3;        // the PWM pin the Blue LED is attached to int LED = 4;            // the output the normal state LED is attached to int Button = 12;        // pushbutton test play track pin int Track = random(0,13);     int inputPin = 2;       // choose the input pin (for PIR sensor) int pirState = LOW;           // we start, assuming no motion detected int val = 0;                  // variable for reading the pin status void setup() {   Serial.begin(115200);         // softwareserial at 115200 baud   Serial.println("Adafruit Sound Board!");   ss.begin(115200);      pinMode(LED, OUTPUT);           // assigning LED as an output   pinMode(RedLED, OUTPUT);        // assigning RedLED as an output   pinMode(BlueLED, OUTPUT);       // assigning BlueLED as an output   pinMode(incomingAudio, INPUT);  // assigning incomingAudion as an input   pinMode(Button, INPUT);         // assigning Button as an input   pinMode(inputPin, INPUT);       // declare sensor as input   if (!sfx.reset()) {     Serial.println("Not found");     while (1);   }   Serial.println("SFX board found"); } void loop(){   digitalWrite(LED, HIGH);        // assigning LED to start with +5V   incomingAudio = analogRead(A0);               //read voltage at A0   incomingAudio = (incomingAudio+1)/4 - 1;      //scale from 10 bit (0-1023) to 8 bit (0-255)   if (incomingAudio<0){                         //deal with negative numbers     incomingAudio = 0;   }   PORTD = incomingAudio;   Serial.println(PORTD);   val = digitalRead(inputPin);                 // read input value    if (val == HIGH) {                          // check if the input is HIGH       sfx.playTrack(Track);       Serial.println(Track);       if (pirState == LOW) {                   // we have just turned on       Serial.println("Motion detected!");      // We only want to print on the output change, not state       pirState = HIGH;       }     }    else {       if (pirState == HIGH){                   // we have just turned of       Serial.println("Motion ended!");         // We only want to print on the output change, not state       pirState = LOW;     }   }     if (Button=HIGH){                             // pin D12 to button, ground thru 10K res, and +5v       sfx.playTrack(Track);       Serial.println(Track);       }   if (incomingAudio>=128 &&Track;>=0 &&Track;<=6){      digitalWrite(RedLED, incomingAudio-128);      digitalWrite(LED, LOW);      }   else if (incomingAudio>=128 &&Track;>=7 &&Track;<=12){      digitalWrite(BlueLED, incomingAudio-128);      digitalWrite(LED, LOW);      }   else{      digitalWrite(LED, HIGH);      digitalWrite(RedLED, LOW);      digitalWrite(BlueLED, LOW);      delay(15000);   } } [/code]

Question by supramp  

How to chemically reproduce a product called crystal fx or DNA mutant crystals from just an MSDS? Answered

I have been trying to reproduce a chemical paint treatment made by Alsa Corp - Crystal FX.  All I have to go on is the MSDS.  A similar solution is produced by DNA Mutant Paints. Yes, I am trying to do this on the cheap, we are looking at spraying my entire Japanese mini truck in this solution come spring, so... why not make up the solution myself.  Ingredients from the MSDS - Water, Urea, Neocryl BT-175, Aqua Ammonia. Have been experimenting already with urea to some success and another product that is designed to reproduce crystal like ice patterns on your window glass for Christmas.  I found one can at a store that said that container had been sitting there for over 20 years, they don't even know where it came from.  No data solution on that.  Any thoughts, path forward ideas would be great, provided they don't exceed the price of just buying the solution pre-made - about $200.00 plus 150$ for shipping - I live in the middle of nowhere.... 4 hours south of Alaska.  The pictures are of the product applied, and the silly truck is my target, a 1991 right hand drive Mitsubishi Mini Truck

Question by iminthebathroom    |  last reply

The animatronic project Is finished

Here my instructableMy Animatronic Mod ProjectIn 2003 I made a casemod MONSTERMOD ( picture 1), Just a creature sculpture tearing out of a PC case.And It Didnt Move . So , I want the next MONSTERMOD to MOVE.Maybe to tell me that I have email.... Picture people's PCs having Heads .There favorite movie star or rock star maybe a animal. Maybe like Hal from 2001Space Odyssey .But, My animatronic Mod Has no A.I. But maybe one day. Im programmingthe 16 servo movements into the PC and press the play to play the movements a lipsync routine.Well, For Over 2 years now I have been working My Animatronic Mod.My Animatronic Mod is a floating creature head over a desktop case.( picture 2 IMG_1383.jpg)It controlled my a 2 Mini SSC II ( this allow the computer to control 16 RC servos.16 RC servos = 16 Movements .I made the teeth out of dental acrylic, The samething denture are made of.Teeth and fangs are made 1st in tooth color dental acrylic and shaped.Then are placed in dental wax .,the mold is a silicone putty is place on the teeth allow to setup overnight.To demold the wax is melted away with boiling water leaving the teeth in the silicone putty sockets.This is called the lost wax process.( picture 3,4,)After I made the eyes out of dental acrylic ,Which is a molded ping pong ball is 40 mm .In half 20 mm sandwhich in between the 2 halves is a metal small metal ball 10mm give me a ball joint and socket.The iris is a painted metal washer. The veins are silk yarn And is cover with clear dental acrylic .The white of the eyes was changed to black color ,To give more of a alien look. ( picture 6,7)I molding the finished eyes alginate and casting them in ultracal 30, ( picture 8) Ultracal 30 is the hardest plaster made.And place them in the sculpture.This will be for Proper registration for the eyes in the skull.( picture 9 )I had to sculpt face in Roma Plastilina Clay ( picture 10)and mold it in silicone( picture 11a,11b, 11 ) This molding process called a matrix mold . A layer of water clay cover theentire clay sculpture and Ultracal 30 is place on top of the water clay .After setup ,Its demolded and water clay removed .This water clay has made a space for the silicone.Matrix molda thin layer of water clay is place ( picture 12 ) and made the core A .This gave me the thickest for the skin .Molded core A in silicone and a thin layer of water clay is place in this mold also this made core B.And this gave the thickest of the Skull. Now I have 2 molds.( picture 13,14 )Mold 1 is the Skin moldMold 2 is the skull moldI casted foam rubber in mold 1 ( picture 15,) make the foam rubber skin337 gms. base67 grams foaming agent33 grams curing agent15 flow enhancer24 grams gelling agent4 grams ammoniaThe room temp73 degrees 40%Using a Sunbeam MixMaster Mixer1. Speed #1 - 1 minute (to blend all components)2. Speed #10 - 3 minutes : blend all3. Speed #3 - 4 minutes : refine4. Speed #1 - 30 seconds :refine5. Speed #1 - 30 seconds : ADD GELLING AGENT ( picture 16 )6. Speed #1 - 30 seconds : Backturn the bowlFoam rubber can be tricky.Mold 1 was place in a Hot box oven for 11 hours at 125 degrees .= A very soft and flexable skin ( picture 15,16 )Hot box oven 3'x 3'x 3 " plywood box with foil insulation with a single burner. This must be watched.( picture 17,18,19)I casted urethane Plastic from in mold 2.This gave me the Skull,The skull was trimed and dental acrylic teeth and eyes were place inside the skull .The mechanics were place using R/C servos.The skin was painted with PAX ( is a flexible paint). The skin was glue on rubber cement to the skull .And the hair was glued rubber cement also and placed.Hair is from National Fiber Technology ,Hair 1 was Blended Black and Brown modacrylic with White and Brown Mohair and Natural Goat hair.And hair 2 Black with gray texturized modacrylic with Yak and Horse hair.The PCMy motherboard (MSI KT6) and AMD 2500xp video card (MSI 6600)The case is LIAN LI PC-V800B .To make the lip sync move ,I used VSA , Visual Show Automation , http://www.brookshiresoftware.comThis aloud me to make a lip sync animation routine. Synchronize with graphical audio MP3 file.Not only that My Animatronic Mod looks Wicked ,It Talks Back.(Picture 1st floor) ( Picture 2nd floor)I designed the animatronic so I could repair it if needed, And the support pipe is like a swing arm so I can work on the PC too. By removing the back of the skull. Inside there are 2 floors the bottom floor has 6 servos :1 Head Up + Down2 Eyes Up + Down and left + right2 Eyelids1 Jaw2nd floor 7 servos3 right,left and center Brows1 Nose3 upper lip wireAnd also 2 servos are in the Jaw for lower lip wireand 1 left + right servo gimbal= 16 servosWhen uncovered ,Here is 32 feet of servo cable.(picture32 feet )The only thing connecting to the PC and the Animatronic is a modular cable (Lookslike a phone cable). Which is plug into a modular adapter that plug into the PC's serial port . The end of the modular cable plug in Mini SSCII Serial Servo would be surprise how many people are into making monsters. Ive beenmaking monsters , masks and makeup fx for 30 years now.I put my 2 hobbies that Ienjoy together.Computers and making monsters.Im a dental lab tech. for 20 years now .I make dentures for a living.Thank You so muchGary WillettTo see Video Demos Servos ...................For Hair ............ Silicone,Urethane PlasticbooksTechniques of Three-Dimensional Makeup by Lee Baygan Special Make-Up Effects (Paperback)by Vincent Kehoe Men, Makeup & Monsters: Hollywood's Masters of Illusion and FX (Paperback)by Anthony TimponeStop-Motion Puppet Sculpting: A Manual of Foam Injection, Build-Up and Finishing Techniques (Paperback)by Tom Brierton Stop-Motion Armature Machining: A Construction Manual (Paperback)by Tom Brierton MagazineCinefex

Topic by willettfx    |  last reply