Green Earth has become a more professional and full-fledged company since a decade development.
greenearthcn@greenearthcn.com +86 13823531612
This fire is so real; you can never tell the difference from the real one if you watch it from a distance. I think the key is that the producer inside can generate the mist in the fire shape, I still dont know how this works.I think about the feeling that people get when seeing this, I feel much warmer. Most of the complaints from a swimming pool is always that why the water is so cold? But when people see a fire, they will have a warm feeling in the body.Here is the video:Interruptible LED FadeInfluenced by this amazing fire, I decided to use LED to simulate the nature of the light, combing with a natural style design.I want to make something like a real fire, which is a bonfire.
First, I went through the primary circuit. I used the Arduino UNOLEDPotentiometer.I use the Potentiometer to control the frequency of the blinking. Also, I use the sine wave to smooth the blick.See the codes here.#define LED_PIN 10 // PWM PIN//#define PERIOD 1000 // THE LESS THIS VALUE, THE FASTER LED WILL BLINK//#define W 2*PI/PERIOD //SIN AMPLITUDE *#define AMPLITUDE 127// Used to generate time for the cos waveunsigned long timer 0;int readValue 0;void setup() Serial.begin(9600);void loop() readValue analogRead(A0); int period map(readValue, 0, 1024, 100, 2000); float W 2 * PI / period; // Serial.
println(W);timer millis(); int ledValue 128 AMPLITUDE * (cos(W * timer)); analogWrite(LED_PIN, checkValue(ledValue)); Serial.println(checkValue(ledValue));int checkValue(int val) if (val > 255) val 255; else if (val
Copyright © 2021 GREENEARTH | Sitemap