Ir para conteúdo
View in the app

A better way to browse. Learn more.

EletrônicaBR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mathheusbueno

Membros
  • Registrado em

  • Última visita

  • Créditos EBR

    4
  1. Amigo tem que calcular a tensão ali do circuito, onde esta o multímetro, dai tu muda as impedâncias de acordo que gere a mesma tensão do circuito anterior. circuito rc ....
  2. Bom dia, essa impressora e muito boa mais tem que usar quase diariamente para não dar problemas. você precisa baixar o drive com os utilitários. tente fazer uma limpeza intensa, depois alimento , verificação de jatos.....
  3. amigo da pra tu fazer um via micro controlador, usando o led endereçável ws2812b por exemplo ,....
  4. https://drive.usercontent.google.com/download?id=1TqMu9JNHWx9eKL3_F_7sel2Y0Sgc8YUT&export=download&authuser=0 ta na mão
  5. da pra usar um desse aqui dai soh usar mais um adaptador pra por no nvme m2
  6. amigo essa impressora e chata tem que alinhar o cabeçote fazer verificação de jatos alinhamento um montão de vez 1hrs ... par prestar
  7. Já tive esse problema com um n4050. Ele estava com problema na placa I/O. Talvez tenha que trocá-lo...
  8. #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27,16,2); const int sensorUmidadeSoloPin = A0; const int pinoLedVermelho = 5; const int pinoLedAmarelo = 6; const int pinoLedVerde = 7; const int pinoRele = 10; const int botaoLigarPin = 2; const int botaoDesligarPin = 3; const int limiteUmidadeSeco = 250; const int limiteUmidadeUmido = 750; bool sistemaLigado = false; void setup() { Serial.begin(9600); // Inicializa a comunicação serial com 9600 bauds lcd.init(); lcd.begin(16, 2); lcd.backlight(); lcd.print("Umidade Atual:"); pinMode(pinoLedVermelho, OUTPUT); pinMode(pinoLedAmarelo, OUTPUT); pinMode(pinoLedVerde, OUTPUT); pinMode(pinoRele, OUTPUT); digitalWrite(pinoRele, LOW); pinMode(botaoLigarPin, INPUT_PULLUP); pinMode(botaoDesligarPin, INPUT_PULLUP); } void loop() { atualizarEstadoSistema(); if (sistemaLigado) { int umidadeSolo = lerUmidadeSolo(); Serial.print("Umidade do Solo: "); Serial.println(umidadeSolo); // Envia o valor da umidade do solo pela comunicação serial atualizarStatusIrrigacao(umidadeSolo); mostrarUmidadeLCD(umidadeSolo); } else { desligarSistema(); } } int lerUmidadeSolo() { return analogRead(sensorUmidadeSoloPin); } void atualizarEstadoSistema() { sistemaLigado = sistemaLigado ^ digitalRead(botaoLigarPin) == LOW; if (digitalRead(botaoDesligarPin) == LOW) { sistemaLigado = false; desligarIrrigacao(); } } void atualizarStatusIrrigacao(int umidade) { if (umidade < limiteUmidadeSeco) { acionarIrrigacao(); setLedStatus(HIGH, LOW, LOW); } else if (umidade < limiteUmidadeUmido) { acionarIrrigacao(); setLedStatus(LOW, HIGH, LOW); } else { desligarIrrigacao(); setLedStatus(LOW, LOW, HIGH); } } void mostrarUmidadeLCD(int umidade) { int porcentagemUmidade = map(umidade, 0, 1023, 0, 100); lcd.setCursor(0, 1); lcd.print(" "); lcd.setCursor(0, 1); lcd.print(porcentagemUmidade); lcd.print("%"); } void acionarIrrigacao() { digitalWrite(pinoRele, HIGH); } void desligarIrrigacao() { digitalWrite(pinoRele, LOW); } void desligarSistema() { setLedStatus(LOW, LOW, LOW); desligarIrrigacao(); } void setLedStatus(bool vermelho, bool amarelo, bool verde) { digitalWrite(pinoLedVermelho, vermelho); digitalWrite(pinoLedAmarelo, amarelo); digitalWrite(pinoLedVerde, verde); }
  9. #include <LiquidCrystal.h> // Pinos do LCD LiquidCrystal lcd(12, 11, 5, 4, 3, 2); const int sensorPin = 2; // Pino do sensor infravermelho volatile int pulseCount = 0; unsigned long lastTime = 0; unsigned long interval = 1000; // Intervalo de tempo (1 segundo) void setup() { lcd.begin(16, 2); pinMode(sensorPin, INPUT); attachInterrupt(digitalPinToInterrupt(sensorPin), countPulse, RISING); lastTime = millis(); } void loop() { if (millis() - lastTime >= interval) { noInterrupts(); int rpm = pulseCount * 60; // Conversão de pulso/segundo para RPM pulseCount = 0; interrupts(); lcd.clear(); lcd.print("RPM: "); lcd.print(rpm); lastTime = millis(); } } void countPulse() { pulseCount++; } Já fiz um dsss uma vez, qum quizer pod usar o codigo de base
  10. #include <SoftwareSerial.h> // Escolha pinos diferentes para o SoftwareSerial se possível SoftwareSerial HC05(10, 11); // Exemplo: pinos 10 e 11 #define DELAY 1000 #define LED_VERMELHO 4 #define LED_VERDE 7 #define SENSOR_PIN A0 void setup() { Serial.begin(9600); HC05.begin(115200); pinMode(LED_VERMELHO, OUTPUT); pinMode(LED_VERDE, OUTPUT); } void loop() { float voltage = analogRead(SENSOR_PIN) * (5.0 / 1023.0); float temperatura = 100 * voltage; Serial.println(temperatura); HC05.print(temperatura); if (temperatura < 28) { digitalWrite(LED_VERDE, HIGH); digitalWrite(LED_VERMELHO, LOW); } else { digitalWrite(LED_VERMELHO, HIGH); digitalWrite(LED_VERDE, LOW); } delay(DELAY); } muito bom dei uma otimizada no codigo evitando usar o SoftwareSerial nos pinos 0 e 1

Account

Navigation

Pesquisar

Pesquisar

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.