Categories
Arduino Ask Engineering

9 volt battery not being able to power motor driver [duplicate]

Currently I am using a 9 Volt Duracell A one like this: I am using it to power a motor driver which contains 2 motors within. I can see where the main problem is coming and that is to do with that the voltage is not big enough. But I don’t understand why this is. […]

Categories
Arduino Ask Engineering

9 volt battery not being able to power motor driver

Currently I am using a 9 Volt Duracell A one like this: I am using it to power a motor driver which contains 2 motors within. I can see where the main problem is coming and that is to do with that the voltage is not big enough. But I don’t understand why this is. […]

Categories
Arduino Ask Engineering

9 volt battery not being able to power motor driver

Currently I am using a 9 Volt Duracell A one like this: I am using it to power a motor driver which contains 2 motors within. I can see where the main problem is coming and that is to do with that the voltage is not big enough. But I don’t understand why this is. […]

Categories
Arduino Ask Engineering

Low power USB C power supply

I am searching for a tiny board to that accepts an usb-c cable and outputs 5v. To my understanding, for the few hundred milliamps two 5k1 resistors on the board would suffice. PD is not needed. I already bought this, but sadly it’s too big. Also, I don’t need any data pins, just 5v and […]

Categories
Arduino Ask Engineering

IR Remote Breathing effect

Hı everyone I am trying give my led a breathing effect using millis() But neither led isnt breathinng and it stucks I cannot use other fucntions. Please help… #include <IRremote.h> #define irPin 2 int led1 = 9; int turn = 11; bool breathing = false; IRrecv irrecv(irPin); decode_results results; unsigned long previousMillis = 0; boolean […]

Categories
Arduino Ask Engineering

Programming an arduino using only switches to give 0 or 1

I am not too experienced about the working of arduino but I know that it involves data in computer language ( 0 and 1) I have an array of 8 switches plus a few extra. As I am unable to (due to some reasons) program it through my pc, I wanted to know if it […]

Categories
Arduino Ask Engineering

I want to create 10 levels with one button but this code shows only level 1?

#include <Adafruit_NeoPixel.h> const int PIN = 4; const int NUMPIXELS = 10; const int BUTTONPIN = 6; int buttonState = 0; int PINState = 0; int level = 1; int dt = 100; Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); void setup() { pixels.begin(); pinMode(BUTTONPIN, INPUT); Serial.begin(9600); } void loop(void) { Serial.println(buttonState); buttonState = digitalRead(BUTTONPIN); if […]

Categories
Arduino Ask Engineering

Cutting neopixel routine code short

I’ve been working on a level meter with a neopixel strip (WS2812). The code is very simple: reading a potentiometer, mapping the input and showing the output in the led strip. So far, so good. The code I include below is working fine but, obviously, ugly and repetitive. Since my knowledge of programming is very […]

Categories
Arduino Ask Engineering

Can’t turn off fan using PWM and analogWrite(x, 0)

I’m trying to make PWM Signal Generator with Arduino Uno. I’m trying to control 230V 50hz "NRG118" combi boiler fan. The fan powered by AC and have 3pins for PWM control. "vcc,gnd,pwm" Wired them to arduino "5v, GND, 11" pins. I can control the card on the arduino "0to100% with a simple code below but […]

Categories
Arduino Ask Engineering

ESP32 servo runs continuous

I have ESP32 connected to TZT servo SG90. This is the code #include <ESP32Servo.h> #define TURN_TIME 175 Servo myservo; // create servo object to control a servo // 16 servo objects can be created on the ESP32 int pos = 0; // variable to store the servo position // Recommended PWM GPIO pins on the […]