Próximos Eventos Programados:
[Na Caixa] USS Enterprise NCC-1701 - Revell - 1/600
Moderador: Moderadores GT
- Vrykolakas
- Super Membro
- Mensagens: 5153
- Registrado em: 11 Abr 2014, 20:37
- Nome: Paulo Ayres Muselli de Mendonca
- Agradeceu: 0
- Curtiram: 0
Re: USS Enterprise NCC-1701 - Revell - 1/600
Uma protoboard desta é cara? Não precisa nem de solda né?
Trespassors will be shot
Survivors will be shot again
Survivors will be shot again
- GNegrini
- Membro
- Mensagens: 327
- Registrado em: 22 Set 2016, 22:02
- Nome: Guilherme
- Localização: Porto Alegre - RS
- Agradeceu: 0
- Curtiram: 0
Re: USS Enterprise NCC-1701 - Revell - 1/600
Isso, é só encaixar nos furos conforme a necessidade. Uma de 830 furos tá uns 15 reais no mercado livre, tem maiores, menores, dá pra encaixar várias, tem de tudoVrykolakas escreveu:Uma protoboard desta é cara? Não precisa nem de solda né?
- Wanderson
- Super Membro
- Mensagens: 7131
- Registrado em: 24 Set 2014, 11:38
- Nome: Wanderson G. Wanzeller
- Localização: Laranjeiras do Sul - PR
- Agradeceu: 44 vezes
- Curtiram: 93 vezes
-
Contato:
- Troféus:
- GTs em Andamento:
Re: USS Enterprise NCC-1701 - Revell - 1/600
tenho uma de 830. É uma mão na roda!!!!GNegrini escreveu:Isso, é só encaixar nos furos conforme a necessidade. Uma de 830 furos tá uns 15 reais no mercado livre, tem maiores, menores, dá pra encaixar várias, tem de tudoVrykolakas escreveu:Uma protoboard desta é cara? Não precisa nem de solda né?
Mais informações das montagens estão no meu canal
https://www.youtube.com/channel/UC5xPfN ... subscriber
https://www.youtube.com/channel/UC5xPfN ... subscriber
- Johnnn
- Super Membro
- Mensagens: 1075
- Registrado em: 28 Jul 2012, 10:56
- Nome: Jonatas Endo Capuchim
- Localização: Novo Hamburgo - RS
- Agradeceu: 0
- Curtiram: 0
Re: USS Enterprise NCC-1701 - Revell - 1/600
Caraca, e eu perdendo tudo isso? Eu não acredito.
Incrível seu trabalho amigo, quando mencionou que iria utilizar arduino e teria efeitos sonoros eu fiquei meio na duvida pois sei que o arduino só reproduz sons com o buzzer, tipo midi. Mas vendo este módulo que utilizou faz todo o sentido.
Voce coloca os arquivos no cartão, ai depois na programação vai chamando eles conforme a necessidade?
Sobre as diferentes tensões, não pensou em utilizar um 7809 e um 7805 para reduzir a tensão? Alimenta com 12v todo o sistema, ai o 7809 utiliza para o arduino e ou 7805 para o dfplayer, acho que eles não consomem o suficiente para necessitar de um dissipador.
Agora vou ficar aqui de olho sempre
Abraços
Incrível seu trabalho amigo, quando mencionou que iria utilizar arduino e teria efeitos sonoros eu fiquei meio na duvida pois sei que o arduino só reproduz sons com o buzzer, tipo midi. Mas vendo este módulo que utilizou faz todo o sentido.
Voce coloca os arquivos no cartão, ai depois na programação vai chamando eles conforme a necessidade?
Sobre as diferentes tensões, não pensou em utilizar um 7809 e um 7805 para reduzir a tensão? Alimenta com 12v todo o sistema, ai o 7809 utiliza para o arduino e ou 7805 para o dfplayer, acho que eles não consomem o suficiente para necessitar de um dissipador.
Agora vou ficar aqui de olho sempre
Abraços
- GNegrini
- Membro
- Mensagens: 327
- Registrado em: 22 Set 2016, 22:02
- Nome: Guilherme
- Localização: Porto Alegre - RS
- Agradeceu: 0
- Curtiram: 0
Re: USS Enterprise NCC-1701 - Revell - 1/600
E aí JohnnJohnnn escreveu:Caraca, e eu perdendo tudo isso? Eu não acredito.
Incrível seu trabalho amigo, quando mencionou que iria utilizar arduino e teria efeitos sonoros eu fiquei meio na duvida pois sei que o arduino só reproduz sons com o buzzer, tipo midi. Mas vendo este módulo que utilizou faz todo o sentido.
Voce coloca os arquivos no cartão, ai depois na programação vai chamando eles conforme a necessidade?
Sobre as diferentes tensões, não pensou em utilizar um 7809 e um 7805 para reduzir a tensão? Alimenta com 12v todo o sistema, ai o 7809 utiliza para o arduino e ou 7805 para o dfplayer, acho que eles não consomem o suficiente para necessitar de um dissipador.
Agora vou ficar aqui de olho sempre
Abraços
Isso aí, para o DFPlayer é só colocar no microSD e nomear como "0001_nomedamúsica.mp3" e depois utilizando a biblioteca do módulo chamar as funções (ex.: mp3_play(1);))
Eu acho que vou utilizar um módulo regulador de tensão pronto que tenho aqui, aí alimento a fita de LED com 12V e puxo 9V pro Arduino. Eu até poderia alimentar o Arduino com 12V mesmo, mas não gosto de trabalhar no limite superior, daqui a pouco desregula, esquenta o bichinho, sei lá. O DFPlayer consegui alimentar pelo 5V do Arduino, sem dar problema no som como costumam relatar que acontece, depois de seguir algumas dicas obscuras na internet (adicionar um resistor, não entendi ainda pq e como funcionou ).
- Johnnn
- Super Membro
- Mensagens: 1075
- Registrado em: 28 Jul 2012, 10:56
- Nome: Jonatas Endo Capuchim
- Localização: Novo Hamburgo - RS
- Agradeceu: 0
- Curtiram: 0
Re: RE: Re: USS Enterprise NCC-1701 - Revell - 1/600
Entendi. É, o regulador de tensão é baseado em um 78xx, a diferença que ele ja vem com os capacitores e redutores necessários para dar uma filtrada na tensão.GNegrini escreveu:E aí JohnnJohnnn escreveu:Caraca, e eu perdendo tudo isso? Eu não acredito.
Incrível seu trabalho amigo, quando mencionou que iria utilizar arduino e teria efeitos sonoros eu fiquei meio na duvida pois sei que o arduino só reproduz sons com o buzzer, tipo midi. Mas vendo este módulo que utilizou faz todo o sentido.
Voce coloca os arquivos no cartão, ai depois na programação vai chamando eles conforme a necessidade?
Sobre as diferentes tensões, não pensou em utilizar um 7809 e um 7805 para reduzir a tensão? Alimenta com 12v todo o sistema, ai o 7809 utiliza para o arduino e ou 7805 para o dfplayer, acho que eles não consomem o suficiente para necessitar de um dissipador.
Agora vou ficar aqui de olho sempre
Abraços
Isso aí, para o DFPlayer é só colocar no microSD e nomear como "0001_nomedamúsica.mp3" e depois utilizando a biblioteca do módulo chamar as funções (ex.: mp3_play(1);))
Eu acho que vou utilizar um módulo regulador de tensão pronto que tenho aqui, aí alimento a fita de LED com 12V e puxo 9V pro Arduino. Eu até poderia alimentar o Arduino com 12V mesmo, mas não gosto de trabalhar no limite superior, daqui a pouco desregula, esquenta o bichinho, sei lá. O DFPlayer consegui alimentar pelo 5V do Arduino, sem dar problema no som como costumam relatar que acontece, depois de seguir algumas dicas obscuras na internet (adicionar um resistor, não entendi ainda pq e como funcionou ).
Assim como no arduino possui o 7805 para a saída 5v, porem é um smd. Só tem de cuidar esse resistor para não elevar muito a corrente na saída 5v do arduino.
Mas que bom que conseguiu utilizar sem problemas o 5v do.kit, é uma mão na roda.
Vendo seu projeto ja me borbulhou algumas ideias na cabeça, quem sabe um dia eu arrisco.
Parabéns pelo trabalho e por compartilhar.
Abraços
Enviado de meu ASUS_Z00VD usando Tapatalk
- GNegrini
- Membro
- Mensagens: 327
- Registrado em: 22 Set 2016, 22:02
- Nome: Guilherme
- Localização: Porto Alegre - RS
- Agradeceu: 0
- Curtiram: 0
Re: USS Enterprise NCC-1701 - Revell - 1/600
Pessoal, já que estamos discutindo bastante essa parte de eletrônica, já vou deixar disponível o código até o momento, caso sirva pra dar alguma ideia à s mentes mirabolantes aqui do fórum
Tentei fazer ele bem comentado enquanto programava, mas ainda falta otimizar algumas coisas. O maior exemplo é a função "FiringMode()" (pra disparar os torpedos e phasers, com som e luz sincronizados), pq quem fez foi minha namorada, então a construção do código/nome de variáveis está diferente do meu padrão
Segue abaixo:
Tentei fazer ele bem comentado enquanto programava, mas ainda falta otimizar algumas coisas. O maior exemplo é a função "FiringMode()" (pra disparar os torpedos e phasers, com som e luz sincronizados), pq quem fez foi minha namorada, então a construção do código/nome de variáveis está diferente do meu padrão
Segue abaixo:
/*===================================== USS ENTERPRISE NCC-1701 ARDUINO SKETCH ===========================================================================
* This sketch was written to control light and sound effects of the USS Enterprise NCC-1701 (Revell - 1:600) model.
* Please note there are several ways to achieve the same effects or even different ones. This sketch was written as best suited to the author's needs.
* Authors: Guilherme Negrini & Luísa Lucchese
*/
#include <LedFlasher.h>
#include <LedFader.h>
#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>
SoftwareSerial DFPlayerSerial(10, 11); // RX, TX
//Some instructions to use the DFPlayer functions
/*
mp3_play(); //start play
mp3_play(5); //play "mp3/0005.mp3"
mp3_pause();
mp3_stop();
mp3_next();
mp3_prev();
mp3_set_volume(uint16_t volume); //0~30
mp3_set_EQ(); //0~5
void mp3_single_loop(boolean state); //set single loop
void mp3_random_play();
*/
//Sounds
/*
* 0001_opening.mp3 > 60s (1min)
* 0002_bridge.mp3 > 870s (14min30s)
* 0003_redalert.mp3 > 33s
* 0004_phasers.mp3 > 30s
* 0005_torpedoes.mp3 > 4s
*/
//LedFlasher class (author: Nick Gammon) used to blink the saucer LEDs
LedFlasher SaucerBlink (6, 1000, 1000); // pin 6, off for 1000 ms, on for 1000 ms
// constants won't change. Used here to set a pin number:
//Bussard's LEDs pins
const int buss_yellow = 2;
const int buss_red = 3;
const int buss_green_blue = 4;
const int buss_white = 5;
//Firing LEDs pin
const int fire = 9;
//Button's pins
const int button_theme = 14;
const int button_bridge = 15;
const int button_alert = 16;
const int button_firing = 17;
const int button_mute = 18;
//Button's variables
int button_theme_state = 0;
int button_bridge_state = 0;
int button_alert_state = 0;
int button_firing_state = 0;
int button_mute_state = 0;
// ledState used to set the Bussards LED
int ledState_yellow = LOW;
int ledState_red = LOW;
int ledState_green_blue = LOW;
int ledState_white = LOW;
// Generally, you should use "unsigned long" for variables that hold time
// The value will quickly become too large for an int to store
// previousMillis will store last time LED was updated
unsigned long previousMillis1 = 0;
unsigned long previousMillis2 = 0;
// interval at which to blink (milliseconds)
const long interval_yellow = 100;
const long interval_red = 200;
const long interval_green_blue = 300;
const long interval_white1 = 500;
const long interval_white2 = 580;
//Function to set the states of the Bussards LEDs (turn on or off)
void setBussLED (){
digitalWrite(buss_yellow, ledState_yellow);
digitalWrite(buss_red, ledState_red);
digitalWrite(buss_green_blue, ledState_green_blue);
digitalWrite(buss_white, ledState_white);
}
//Function to blink the Bussards collectors LEDs's in the desired sequence and interval
void BussBlink(){
// check to see if it's time to blink the LED; that is, if the difference
// between the current time and last time you blinked the LED is bigger than
// the interval at which you want to blink the LED.
unsigned long currentMillis = millis();
if (currentMillis - previousMillis1 >= interval_yellow and currentMillis - previousMillis1 <= interval_red) {
//light only the yellows
ledState_yellow = HIGH;
ledState_red = LOW;
ledState_green_blue = LOW;
ledState_white = LOW;
// set the LED with the ledState of the variable:
setBussLED();
}
if (currentMillis - previousMillis1 >= interval_red and currentMillis - previousMillis1 <= interval_green_blue) {
//light only the reds
ledState_yellow = LOW;
ledState_red = HIGH;
ledState_green_blue = LOW;
ledState_white = LOW;
// set the LED with the ledState of the variable:
setBussLED();
}
if (currentMillis - previousMillis1 >= interval_green_blue) {
// save the last time you blinked the LED
previousMillis1 = currentMillis;
//light only the greens and blues
ledState_yellow = LOW;
ledState_red = LOW;
ledState_green_blue = HIGH;
ledState_white = LOW;
// set the LED with the ledState of the variable:
setBussLED();
}
if (currentMillis - previousMillis2 >= interval_white1 and currentMillis - previousMillis2 <= interval_white2) {
ledState_white = HIGH;
digitalWrite(buss_white, ledState_white);
}
if (currentMillis - previousMillis2 >= interval_white2) {
// save the last time you blinked the LED
previousMillis2 = currentMillis;
ledState_white = LOW;
// set the LED with the ledState of the variable:
digitalWrite(buss_white, ledState_white);
}
}
//Functions called when buttons are pressed
void ThemeSound(){
button_theme_state = digitalRead(button_theme); //reads button state
if (button_theme_state == LOW){ //if pressed
mp3_stop(); //stops previous sound
mp3_set_volume(20); //sets volume
mp3_play(1); //play sound
}
}
void BridgeSound(){
button_bridge_state = digitalRead(button_bridge);
if (button_bridge_state == LOW){
mp3_stop();
mp3_set_volume(25);
mp3_play(2);
}
}
void AlertSound(){
button_alert_state = digitalRead(button_alert);
if (button_alert_state == LOW){
mp3_stop();
mp3_set_volume(20);
mp3_play(3);
}
}
void FiringMode(){
button_firing_state = digitalRead(button_firing);
unsigned long cm = millis();
unsigned long cm2 = millis();
int fadeValue = 0;
int contador = 0;
float maxvalluz=255.0;
int sonzinhoini=500;
int inicial2= 2900;
int range1=900;
int range2=200;
int inicial=3000;
int fadeout=1000;
int extra=200;
int range=range1+range2;
analogWrite(fire, fadeValue);
if (button_firing_state == LOW){
mp3_stop();
mp3_set_volume(20);
mp3_play(4);
while (cm2-cm<inicial+range+extra){
cm2 = millis();
if (cm2-cm>sonzinhoini and cm2-cm<=inicial2){
digitalWrite(fire, HIGH);
}
if (cm2-cm>inicial2 and cm2-cm<inicial){
digitalWrite(fire, LOW);
}
if (cm2-cm>inicial and contador==0){
mp3_stop();
mp3_set_volume(20);
mp3_play(5);
contador=1;
}
if (cm2-cm>inicial and cm2-cm<inicial+range1){
fadeValue=(cm2-cm-inicial)*(maxvalluz-100)/(range);
Serial.print(fadeValue);
Serial.println(" ");
analogWrite(fire, fadeValue);
}
if (cm2-cm>inicial+range1 and cm2-cm<inicial+range){
fadeValue=(maxvalluz/range)*(cm2-cm-inicial);
Serial.print(fadeValue);
Serial.println(" ");
analogWrite(fire, fadeValue);
}
if (cm2-cm>inicial+range and cm2-cm<inicial+range+extra){
fadeValue=255;
analogWrite(fire, fadeValue);
}
if (cm2-cm>inicial+range+extra and cm2-cm<inicial+range+extra+fadeout){
fadeValue=255-(maxvalluz/fadeout)*(cm2-cm-inicial-range-extra);
//Serial.print(fadeValue);
//Serial.println(" ");
analogWrite(fire, fadeValue);
}
}
}
}
void MuteMode()
{
button_mute_state = digitalRead(button_mute);
if (button_mute_state == LOW){
mp3_stop();
}
}
void setup() {
// Set the digital pin as output:
pinMode (buss_yellow, OUTPUT);
pinMode (buss_red, OUTPUT);
pinMode (buss_green_blue, OUTPUT);
pinMode (buss_white, OUTPUT);
// Set button pins as input
pinMode (button_theme, INPUT);
pinMode (button_bridge, INPUT);
pinMode (button_alert, INPUT);
pinMode (button_firing, INPUT);
pinMode (button_mute, INPUT);
//Set up the saucer's LEDs
SaucerBlink.begin();
//Set configuration of DFPlayer mini
Serial.begin(9600);
DFPlayerSerial.begin(9600);
mp3_set_serial(DFPlayerSerial);
}
void loop() {
SaucerBlink.update();
BussBlink();
ThemeSound();
BridgeSound();
AlertSound();
FiringMode();
MuteMode();
}
* This sketch was written to control light and sound effects of the USS Enterprise NCC-1701 (Revell - 1:600) model.
* Please note there are several ways to achieve the same effects or even different ones. This sketch was written as best suited to the author's needs.
* Authors: Guilherme Negrini & Luísa Lucchese
*/
#include <LedFlasher.h>
#include <LedFader.h>
#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>
SoftwareSerial DFPlayerSerial(10, 11); // RX, TX
//Some instructions to use the DFPlayer functions
/*
mp3_play(); //start play
mp3_play(5); //play "mp3/0005.mp3"
mp3_pause();
mp3_stop();
mp3_next();
mp3_prev();
mp3_set_volume(uint16_t volume); //0~30
mp3_set_EQ(); //0~5
void mp3_single_loop(boolean state); //set single loop
void mp3_random_play();
*/
//Sounds
/*
* 0001_opening.mp3 > 60s (1min)
* 0002_bridge.mp3 > 870s (14min30s)
* 0003_redalert.mp3 > 33s
* 0004_phasers.mp3 > 30s
* 0005_torpedoes.mp3 > 4s
*/
//LedFlasher class (author: Nick Gammon) used to blink the saucer LEDs
LedFlasher SaucerBlink (6, 1000, 1000); // pin 6, off for 1000 ms, on for 1000 ms
// constants won't change. Used here to set a pin number:
//Bussard's LEDs pins
const int buss_yellow = 2;
const int buss_red = 3;
const int buss_green_blue = 4;
const int buss_white = 5;
//Firing LEDs pin
const int fire = 9;
//Button's pins
const int button_theme = 14;
const int button_bridge = 15;
const int button_alert = 16;
const int button_firing = 17;
const int button_mute = 18;
//Button's variables
int button_theme_state = 0;
int button_bridge_state = 0;
int button_alert_state = 0;
int button_firing_state = 0;
int button_mute_state = 0;
// ledState used to set the Bussards LED
int ledState_yellow = LOW;
int ledState_red = LOW;
int ledState_green_blue = LOW;
int ledState_white = LOW;
// Generally, you should use "unsigned long" for variables that hold time
// The value will quickly become too large for an int to store
// previousMillis will store last time LED was updated
unsigned long previousMillis1 = 0;
unsigned long previousMillis2 = 0;
// interval at which to blink (milliseconds)
const long interval_yellow = 100;
const long interval_red = 200;
const long interval_green_blue = 300;
const long interval_white1 = 500;
const long interval_white2 = 580;
//Function to set the states of the Bussards LEDs (turn on or off)
void setBussLED (){
digitalWrite(buss_yellow, ledState_yellow);
digitalWrite(buss_red, ledState_red);
digitalWrite(buss_green_blue, ledState_green_blue);
digitalWrite(buss_white, ledState_white);
}
//Function to blink the Bussards collectors LEDs's in the desired sequence and interval
void BussBlink(){
// check to see if it's time to blink the LED; that is, if the difference
// between the current time and last time you blinked the LED is bigger than
// the interval at which you want to blink the LED.
unsigned long currentMillis = millis();
if (currentMillis - previousMillis1 >= interval_yellow and currentMillis - previousMillis1 <= interval_red) {
//light only the yellows
ledState_yellow = HIGH;
ledState_red = LOW;
ledState_green_blue = LOW;
ledState_white = LOW;
// set the LED with the ledState of the variable:
setBussLED();
}
if (currentMillis - previousMillis1 >= interval_red and currentMillis - previousMillis1 <= interval_green_blue) {
//light only the reds
ledState_yellow = LOW;
ledState_red = HIGH;
ledState_green_blue = LOW;
ledState_white = LOW;
// set the LED with the ledState of the variable:
setBussLED();
}
if (currentMillis - previousMillis1 >= interval_green_blue) {
// save the last time you blinked the LED
previousMillis1 = currentMillis;
//light only the greens and blues
ledState_yellow = LOW;
ledState_red = LOW;
ledState_green_blue = HIGH;
ledState_white = LOW;
// set the LED with the ledState of the variable:
setBussLED();
}
if (currentMillis - previousMillis2 >= interval_white1 and currentMillis - previousMillis2 <= interval_white2) {
ledState_white = HIGH;
digitalWrite(buss_white, ledState_white);
}
if (currentMillis - previousMillis2 >= interval_white2) {
// save the last time you blinked the LED
previousMillis2 = currentMillis;
ledState_white = LOW;
// set the LED with the ledState of the variable:
digitalWrite(buss_white, ledState_white);
}
}
//Functions called when buttons are pressed
void ThemeSound(){
button_theme_state = digitalRead(button_theme); //reads button state
if (button_theme_state == LOW){ //if pressed
mp3_stop(); //stops previous sound
mp3_set_volume(20); //sets volume
mp3_play(1); //play sound
}
}
void BridgeSound(){
button_bridge_state = digitalRead(button_bridge);
if (button_bridge_state == LOW){
mp3_stop();
mp3_set_volume(25);
mp3_play(2);
}
}
void AlertSound(){
button_alert_state = digitalRead(button_alert);
if (button_alert_state == LOW){
mp3_stop();
mp3_set_volume(20);
mp3_play(3);
}
}
void FiringMode(){
button_firing_state = digitalRead(button_firing);
unsigned long cm = millis();
unsigned long cm2 = millis();
int fadeValue = 0;
int contador = 0;
float maxvalluz=255.0;
int sonzinhoini=500;
int inicial2= 2900;
int range1=900;
int range2=200;
int inicial=3000;
int fadeout=1000;
int extra=200;
int range=range1+range2;
analogWrite(fire, fadeValue);
if (button_firing_state == LOW){
mp3_stop();
mp3_set_volume(20);
mp3_play(4);
while (cm2-cm<inicial+range+extra){
cm2 = millis();
if (cm2-cm>sonzinhoini and cm2-cm<=inicial2){
digitalWrite(fire, HIGH);
}
if (cm2-cm>inicial2 and cm2-cm<inicial){
digitalWrite(fire, LOW);
}
if (cm2-cm>inicial and contador==0){
mp3_stop();
mp3_set_volume(20);
mp3_play(5);
contador=1;
}
if (cm2-cm>inicial and cm2-cm<inicial+range1){
fadeValue=(cm2-cm-inicial)*(maxvalluz-100)/(range);
Serial.print(fadeValue);
Serial.println(" ");
analogWrite(fire, fadeValue);
}
if (cm2-cm>inicial+range1 and cm2-cm<inicial+range){
fadeValue=(maxvalluz/range)*(cm2-cm-inicial);
Serial.print(fadeValue);
Serial.println(" ");
analogWrite(fire, fadeValue);
}
if (cm2-cm>inicial+range and cm2-cm<inicial+range+extra){
fadeValue=255;
analogWrite(fire, fadeValue);
}
if (cm2-cm>inicial+range+extra and cm2-cm<inicial+range+extra+fadeout){
fadeValue=255-(maxvalluz/fadeout)*(cm2-cm-inicial-range-extra);
//Serial.print(fadeValue);
//Serial.println(" ");
analogWrite(fire, fadeValue);
}
}
}
}
void MuteMode()
{
button_mute_state = digitalRead(button_mute);
if (button_mute_state == LOW){
mp3_stop();
}
}
void setup() {
// Set the digital pin as output:
pinMode (buss_yellow, OUTPUT);
pinMode (buss_red, OUTPUT);
pinMode (buss_green_blue, OUTPUT);
pinMode (buss_white, OUTPUT);
// Set button pins as input
pinMode (button_theme, INPUT);
pinMode (button_bridge, INPUT);
pinMode (button_alert, INPUT);
pinMode (button_firing, INPUT);
pinMode (button_mute, INPUT);
//Set up the saucer's LEDs
SaucerBlink.begin();
//Set configuration of DFPlayer mini
Serial.begin(9600);
DFPlayerSerial.begin(9600);
mp3_set_serial(DFPlayerSerial);
}
void loop() {
SaucerBlink.update();
BussBlink();
ThemeSound();
BridgeSound();
AlertSound();
FiringMode();
MuteMode();
}
- Vrykolakas
- Super Membro
- Mensagens: 5153
- Registrado em: 11 Abr 2014, 20:37
- Nome: Paulo Ayres Muselli de Mendonca
- Agradeceu: 0
- Curtiram: 0
- TioDrakul
- Super Membro
- Mensagens: 3114
- Registrado em: 04 Mar 2013, 14:27
- Nome: Daniel Campos
- Localização: Curitiba
- Agradeceu: 0
- Curtiram: 6 vezes
Re: USS Enterprise NCC-1701 - Revell - 1/600
o meu trabalho é lidar com coisas assimVrykolakas escreveu:
- Vrykolakas
- Super Membro
- Mensagens: 5153
- Registrado em: 11 Abr 2014, 20:37
- Nome: Paulo Ayres Muselli de Mendonca
- Agradeceu: 0
- Curtiram: 0
Re: USS Enterprise NCC-1701 - Revell - 1/600
Legal! Vc também estudou psiquiatria? Sempre achei a esquizofrenia fascinante!TioDrakul escreveu:o meu trabalho é lidar com coisas assimVrykolakas escreveu:
Trespassors will be shot
Survivors will be shot again
Survivors will be shot again