r/ArduinoHelp • • Jun 10 '21

1 More Error Left

2 Upvotes

i followed the tips i was givin earlier today and i got rid of all but one error so here i am again.

Can't find any clear awnser anywhere only a head ache xd i just don't yet get the explanation i find on the net.

Hope that after this error is done my rig will work as i hoped. Thanks in advance.

error:

In function 'void loop()':

error: too many arguments to function 'long unsigned int millis()'

while (millis ( 5000 ) );

^

note: declared here

unsigned long millis(void);

^~~~~~

Compilation error: Error: 2 UNKNOWN: exit status 1

code:

int sensor = 13;
int led = 12;
int buzzer = 11;
void setup()
{
pinMode (13,INPUT);
pinMode (12,OUTPUT);
pinMode (11,OUTPUT);
{
digitalWrite (12, LOW);
digitalWrite (11, LOW);
digitalWrite (13, HIGH);
}
}
void loop()
{
{
while (millis ( 5000 ) );
digitalRead (sensor);
digitalWrite (12 ,HIGH);
digitalWrite (11 ,HIGH);
}
}


r/ArduinoHelp • • Jun 13 '20

Need help identifying the pins on this 3.5mm female audio jacks, please!

Post image
2 Upvotes

r/ArduinoHelp • • Jun 03 '20

Virtual Press of a button

2 Upvotes

Hi, as part of my Arduino project I am attempting to simulate a physical push of the button with my Arduino. I want the diffuser to be started when a certain condition is met in my code (the diffuser usually starts when I push the button that I am trying to simulate). I will be able to figure out the code however I don't know what steps to take to convert the button on the diffuser (see images) to something I can virtually press with my code. I intend to use a transistor, as I have a few BC547 NPN Transistors lying around. The two wires I have soldered to part of the button when crossed will short and simulate the push of the button.

Images: https://imgur.com/a/kr0C7KL

Thanks for your help!


r/ArduinoHelp • • May 24 '20

WeMos Server Text Collection

2 Upvotes

I'm trying to collect text from a server. The idea is to have a textbox as well as a button and when the button is pressed, send the information within the textbox to be read by the arduino. I am able to display the text as an alert, but am unsure how to be able to read this from the WeMos board. If anyone has any ideas, or knows what the WeMos board is reading when it receives data from hyperlinks, please let me know. Thanks in advance


r/ArduinoHelp • • May 21 '20

Pushbutton hold for time

2 Upvotes

Hey, I'm trying to write a code that will activate a button and hold that button on for a predetermined amount of time, for example, when the button is pressed the action that this button would usually require to be held on for happens for a certain amount of time, say 30 seconds for example.

I hope this is a very simple task I just have almost no experience with Arduino and thought this would be a simple solution.


r/ArduinoHelp • • May 18 '20

Coding Help

2 Upvotes

Hey all,

I am attempting to have a red LED turn off upon the press of a button. Also when the button is pressed a green LED lights up and a buzzer sounds. I have the red LED working as I had hoped, but the buzzer and green LED do not work when my button is pressed. My arduino knowledge starts and stops within a few weeks of a college class I took, so i am definently new still. I beleive i may have an issue with my sketch, which I have attached. If it is not beleived to be a coding error I can draw up my schematic. Hoping someone can lead me in the right direction.

Thanks for any feedback, this is my third attempt today at getting this to work. I am hungry to get this functioning.

*I have a pull up resister pulling my SensorValue to 5V, making buttonState =1

when the button is pressed, buttonState =0


r/ArduinoHelp • • May 09 '20

Pins not working

2 Upvotes

so i have been working on a project with 2 digital interrupts, one to count sensors pulses, and the other resets the counter. the uno bored has 2 ISR pins (2,3). and i need both for the program to work. i have previously burnt an Arduino pin 3 doing the same project but different sketch, i bough a new bored and restarted the project. last night i lost pin 3 again, i belive it might have been my fault as i changed a wire in my bredboard and i no longer have input or ouput on that pin. my question is

is there a was to test to know 100% my pins are not working and does anyone know if replacing the ATMEGA328u chip on the bored might solve this problem

id rather no buy a new Arduino as this one is only a week old. if i could buy a pack of ATMEGA ICs and just switch them out as i burn them (if i cant figure out why lol)

thanks


r/ArduinoHelp • • May 09 '20

I'm relatively new to arduino, and I'm trying to control two servos over Bluetooth based on mouse position. I'm using pyserial to send the mouse data to the serial port, then trying to read it with arduino. When I run both programs, the servos just jitter around. Is there a way to fix this?

Post image
2 Upvotes

r/ArduinoHelp • • May 08 '20

Please help a Beginner

2 Upvotes

So I am trying to control a diffuser as part of my Arduino project. I want the diffuser to be started when a certain condition is met in my code. I will be able to figure out the code however I don't know what steps to take to convert the button (see images) to something I can activate with my code. Each time 'SW2' is pressed it adds 30mins to the runtime I want to be able to control this from my code.

Thanks for any help! Images to some of the hardware for reference: https://imgur.com/a/SCcKz7q


r/ArduinoHelp • • May 06 '20

I’m trying to use an esp8266 to activate a relay board which will turn on my lamp when I ask my echo dot to turn on my lamp I have the circuit set up but I need help with the code

2 Upvotes

r/ArduinoHelp • • Apr 22 '20

Hooking cable from battery to breadboard

2 Upvotes

I have a LiPo battery and bought some connectors that supposedly can interface between the battery and a motor driver L298n (not breadboard as was in the title). Anyone knows if this is the correct cable/way to do it? When I tried this I saw a spark and immediately unplugged them


r/ArduinoHelp • • Apr 18 '20

Running FastLEDS at the same time (currently 4 seperate for loops)

2 Upvotes

Hi All,

I am running a 5 x 5 matrix diy streamdeck.

I am trying to get 4 different statements merged into one..hopefully

Basically the issue is that my LED animations occur one after another, but I need them to all run at once.

They are running from variables letting them know how many leds are above,below,left and right.

Any ideas on getting around this?

Line in question starts 569. (need to merge the lefty, righty ,toppy and botty to run at same time :)

Thank you!

#include <Keypad.h>
#include <FastLED.h>
#include <Keyboard.h>

//For multiple key presses use Keyboard.press()

bool gReverseDirection = false;
#define NUM_LEDS 25
#define DATA_PIN 2
CRGB leds[NUM_LEDS];
#define COOLING  55
#define SPARKING 120
#define BRIGHTNESS  50
#define FRAMES_PER_SECOND 60
uint8_t gHue = 0;
int keypress = 20; // delay between keyboard press and release


// IDLE ANIMATION SETTINGS
bool idleAnimation = true; // set this to off if you don't want this to run
unsigned long previousMillis = 0;        // will store last time LEDs were updated
unsigned long interval = 900000; //

//900000; // 15 mins

int selected = 666;

bool camState = false;
bool mState = false;
int camButton = 0;
int mButton = 0;
int lAbove;
int lBelow;
int lRight;
int lLeft;


const byte ROWS = 5;
const byte COLS = 5;
char hexaKeys[ROWS][COLS] = 
{

  {'0', '1', '2', '3', '4'},
  {'5', '6', '7', '8', '9'},
  {'A', 'B', 'C', 'D', 'E'},
  {'F', 'G', 'H', 'I', 'J'},
  {'K', 'L', 'M', 'N', 'O'},

};

byte colPins[COLS] = {9, 10, 16, 14, 15};
byte rowPins[ROWS] = {3, 4, 5, 6, 7};


Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);



void setup() 

{

  FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
  FastLED.setBrightness(BRIGHTNESS);
  Serial.begin(9600);
  Keyboard.begin();
 
}

void loop() 

{

  int pick = random(0,3);


if (selected == 666) // Before variable is set, play animation (ie power on)
{
  
        if (pick == 0)
        {
            bpm();
            FastLED.show();
            delay(100);
        }
      
      if (pick == 1)
        {
            juggle();
            FastLED.show();
            delay(100);
        }

     if (pick == 2)
        {
            sinelon();
            FastLED.show();
            delay(100);
        }
   
     if (pick == 3)
        {
            rainbowWithGlitter();
            FastLED.show();
            delay(100);
        }

}
    FastLED.clear(); 
    // Clears ALL LEDS
    //Set LED above last selected button
    leds[selected] = CRGB::Blue; 
   //Sets the standard key colour back on (too quick to see the clear)
    FastLED.show(); 
    
    // shows updated LED settings

/* To set button LEDs to stay off simply remove the 'selected' values in the custom keyboard definitions
 *  examples, when using a soundboard etc.
 */
          
/*Below is code you can use to perform seperate actions on specific buttons, example,              
 * you may wish to use a mute button, but you want to see if you are muted or not at any given time.
 * We can set the LED to red if it is currently muted and Green if it all good. Of course you can change the 
 * actions in the comparison to the button counts below
 * 
 */
/* We use a count to check the button has been pushed, as it can stay on while others change
 *  we are unable to clear when in the true state so we needed another variable each time the button is pressed
 *  in the setup below we add 1, the default is 0, therefore 2 means its been pressed twice and needs to go back
 *  to the default state. Keep in mind you will need to create a unique counter for each custom button and Increase
 *  it's value each time it is called ie (variableNAME = VariableName +1). This needs to occur in the Key definition 
 *  below. You will also need to create a bool for the button to so we will know the button state
(example for the webcam (which are set above setup)
bool camState  = false;
int camButton = 0;
ALSO don't forget to remove the 'selected' assignment for the specific button (otherwise it will go back to blue 
when the main script runs)
 
 */

 /* This is a webcam button, Red LED when it is off defaults can be set at top, Green when it is on */
 
          if (camButton >= 2 or camButton <=0) 
          {

            leds[10] = CRGB::Green; 
            // you need to fill in the LED number as we don't give it a 'selected' value in the custom definitions
            FastLED.show();
            camState = false;
            camButton = 0;
          }
          else if (camButton <= 1)
          {

            leds[10] = CRGB::Red;
            FastLED.show();
          }    

 /* This is a MUTE button, Red LED when it is ON defaults can be set at top, Green when it is OFF 
  *  Just another example, but it is the reverse in terms of colours
  */
 
          if (mButton >= 2 or mButton <=0) 
          {
 
            leds[24] = CRGB::Green; 
            FastLED.show();
            mState = true;
            mButton = 0;
          }
          else if (mButton <= 1)
          {
   
            leds[24] = CRGB::Red;
            FastLED.show();
          }    

      
           
           
/*Testing stuff, you saw nothing...move along */
Serial.print("mButton : ");
Serial.println(mButton);
Serial.print("webCam State : ");
Serial.println(camState);
Serial.print("Mute State : ");
Serial.println(mState);
Serial.print("Selected button is :");
Serial.println(selected);
/* */


//CUSTOM KEYBOARD DECLERATIONS 
 

char customKey = customKeypad.getKey();
  
if (customKey) 
  {
     switch (customKey) 
     {
        case '0':
            selected = 0;   
            Serial.print("You selected F13, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_F13);
            delay(keypress);
            Keyboard.release(KEY_F13);
            break;
            
        case '1':
        
            selected = 1;  
            Serial.print("You selected F14, selected is  ");
            Serial.println(selected);            
            Keyboard.press(KEY_F14);
            delay(keypress);
            Keyboard.release(KEY_F14);
            break;   
            
        case '2':
        
            selected = 2; 
            Serial.print("You selected F15, selected is  ");
            Serial.println(selected);            
            Keyboard.press(KEY_F15);
            delay(keypress);
            Keyboard.release(KEY_F15);
            break;

        case '3':
        
            selected = 3;
            Serial.print("You selected F16, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_F16);
            delay(keypress);
            Keyboard.release(KEY_F16);
            break;

        case '4':
        
            selected = 4;
            Serial.print("You selected F17, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_F17);
            delay(keypress);
            Keyboard.release(KEY_F17);
            break;

        case '5':
        
            selected = 5;
            Serial.print("You selected F18, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_F18);
            delay(keypress);
            Keyboard.release(KEY_F18);
            break;

        case '6':
        
            selected = 6;  
            Serial.print("You selected F19, selected is  ");
            Serial.println(selected);        
            Keyboard.press(KEY_F19);
            delay(keypress);
            Keyboard.release(KEY_F19);
            break;

        case '7':
            
           // selected = 7; // you are using this for 360 privacy no light required
            Serial.print("You selected F20, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_F20);
            delay(keypress);
            Keyboard.release(KEY_F20);
            break;

        case '8':
        
            leds[8] = CRGB::Aqua;
            leds[selected] = CRGB::Blue;  
            FastLED.show(); // you are using this for previous track
            Serial.print("You selected F21, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_F21);
            delay(keypress);
            Keyboard.release(KEY_F21);
            break;

        case '9':
        
            leds[9] = CRGB::Aqua;
            leds[selected] = CRGB::Blue;  
            FastLED.show();// you are using this for next track
            Serial.print("You selected F22, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_F22);
            delay(keypress);
            Keyboard.release(KEY_F22);
            break;

        case 'A':
            
            camState = true;      // you are using this for webcam on / off
            camButton = camButton + 1;
            Serial.print("You selected F23, selected is  ");
            Serial.println(selected); 
            Keyboard.press(KEY_F23);
            delay(keypress);
            Keyboard.release(KEY_F23);
            break;        

        case 'B':
            
            selected = 11;
            Serial.print("You selected F24, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_F24);
            delay(keypress);
            Keyboard.release(KEY_F24);
            break;   

        case 'C':
        
            selected = 12;
            prudy(12);
            Serial.print("You selected F13 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F13);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F13);
            break;                       

        case 'D':
        
            selected = 13;
            Serial.print("You selected F14 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F14);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F14);
            break;                                                                            

        case 'E':
        
            leds[14] = CRGB::HotPink; // Play Button
            leds[selected] = CRGB::Blue;  
            FastLED.show();
            Serial.print("You selected F15 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F15);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F15);
            break;    

        case 'F':
        
            selected = 15;
            Serial.print("You selected F16 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F16);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F16);
            break;    

        case 'G':
        
            selected = 16;
            Serial.print("You selected F17 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F17);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F17);
            break;    

        case 'H':
            
            selected = 17;
            Serial.print("You selected F18 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F18);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F18);
            break;    

        case 'I':
        
            selected = 18;
            prudy(18);
            Serial.print("You selected F19 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F19);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F19);
            break;    

        case 'J':
        
            leds[19] = CRGB::HotPink;
            leds[selected] = CRGB::Blue;  
            FastLED.show();
            Serial.print("You selected F20 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F20);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F20);
            break;       

        case 'K':
        
            leds[20] = CRGB::HotPink;
            leds[selected] = CRGB::Blue; 
            FastLED.show();
            Serial.print("You selected F21 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F21);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F21);
            break;  

        case 'L':
        
            leds[21] = CRGB::HotPink;
            leds[selected] = CRGB::Blue; 
            FastLED.show();
            Serial.print("You selected F22 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F22);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F22);
            break;  

        case 'M':
        
            leds[22] = CRGB::HotPink;
            leds[selected] = CRGB::Blue; 
            FastLED.show();
            Serial.print("You selected F23 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F23);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F23);
            break;  

        case 'N':
        
            leds[23] = CRGB::HotPink;
            leds[selected] = CRGB::Blue;
            FastLED.show();// you are using this for wav
            Serial.print("You selected F24 + Shift, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_SHIFT); 
            Keyboard.press(KEY_F24);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_SHIFT);
            Keyboard.release(KEY_F24);
            break;                                                                                                                       

        case 'O':
        
         //   selected = 24;  
            mState = true;
            mButton = mButton +1;      
            Serial.print("You selected F21 + Alt, selected is  ");
            Serial.println(selected);
            Keyboard.press(KEY_RIGHT_ALT);
            Keyboard.press(KEY_F24);
            delay(keypress);
            Keyboard.release(KEY_RIGHT_ALT);
            Keyboard.release(KEY_F24);
            break;                                                                                                                                   
      }
    }
}

void prudy(int button)
{
  FastLED.clear();

//ROWS
//Top Row
    if (button == 0 or button == 1 or  button == 2 or  button == 3 or button == 4)
    {
    lAbove = 0;
    lBelow = 4; 
    }

//Second Row
    if (button == 5 or button == 6 or  button == 7 or  button == 8 or button == 9)
    {
    lAbove = 1;
    lBelow = 3; 
    }

//Middle Row
if (button == 10 or button == 11 or  button == 12 or  button == 13 or button == 14)
    {
    lAbove = 2;
    lBelow = 2; 
    }
if (button == 15 or button == 16 or  button == 17 or  button == 18 or button == 19)
    {
    lAbove = 3;
    lBelow = 1; 
    }
if (button == 20 or button == 21 or  button == 22 or  button == 23 or button == 24)
    {
    lAbove = 4;
    lBelow = 0; 
    }

// COLUMNS
//Left Column
    if (button == 0 or button == 5 or button == 10 or button == 15 or button == 20)
    {
      lLeft = 0;
      lRight = 4;
    }
    if (button == 1 or button == 6 or button == 11 or button == 16 or button == 21)
    {
      lLeft = 1;
      lRight = 3;
    }
    if (button == 2 or button == 7 or button == 12 or button == 17 or button == 22)
    {
      lLeft = 2;
      lRight = 2;
    }
    if (button == 3 or button == 8 or button == 13 or button == 18 or button == 23)
    {
      lLeft = 3;
      lRight = 1;
    }
    if (button == 4 or button == 9 or button == 14 or button == 19 or button == 24)
    {
      lLeft = 4;
      lRight = 0;
    }

// We now have how many LEDS are to the left or right of the target button
// using said variables we need to replace the below
// we need to determine if right / left / above / down is required then based on that do the light thing

for (int lefty = button - lLeft; lefty < button; lefty++)
{
leds[lefty] = CRGB::Purple;
FastLED.show();
delay(200);
}
for (int righty = button + lRight; righty > button; righty--)
{
leds[righty] = CRGB::Purple;
FastLED.show();
delay(200);
}

for (int topsy = button - (5 * lAbove) ; topsy < button; topsy = topsy + 5)
{
leds[topsy] = CRGB::Purple;
FastLED.show();
delay(200);
}
for (int botty = button + (lBelow * 5); botty > button; botty = botty - 5)
{
leds[botty] = CRGB::Purple;
FastLED.show();
delay(200);
}

/* Original manual code for middle button, replaced with above code
        leds[button+2] = CRGB::Green;
        leds[button-2] = CRGB::Green;
        leds[button+10] = CRGB::Green;
        leds[button-10] = CRGB::Green;
               
        FastLED.show();
        delay(100);

        leds[button+1] = CRGB::Green;
        leds[button-1] = CRGB::Green;
        leds[button+5] = CRGB::Green;
        leds[button-5] = CRGB::Green;
        leds[button+2] = CRGB::Yellow;
        leds[button-2] = CRGB::Yellow;
        leds[button+10] = CRGB::Yellow;
        leds[button-10] = CRGB::Yellow;
        FastLED.show();
        delay(100);

        leds[button+1] = CRGB::Yellow;
        leds[button-1] = CRGB::Yellow;
        leds[button+5] = CRGB::Yellow;
        leds[button-5] = CRGB::Yellow;
        leds[button+2] = CRGB::Red;
        leds[button-2] = CRGB::Red;
        leds[button+10] = CRGB::Red;
        leds[button-10] = CRGB::Red;
        leds[button] = CRGB::Green;
        FastLED.show();
        delay(100);
        */
}
 




 
void bpm()
{
  // colored stripes pulsing at a defined Beats-Per-Minute (BPM)
  uint8_t BeatsPerMinute = 62;
  CRGBPalette16 palette = PartyColors_p;
  uint8_t beat = beatsin8( BeatsPerMinute, 64, 255);
  for( int i = 0; i < NUM_LEDS; i++) { //9948
    leds[i] = ColorFromPalette(palette, gHue+(i*2), beat-gHue+(i*10));
  }
}

void juggle() {
  // eight colored dots, weaving in and out of sync with each other
  fadeToBlackBy( leds, NUM_LEDS, 20);
  byte dothue = 0;
  for( int i = 0; i < 8; i++) {
    leds[beatsin16( i+7, 0, NUM_LEDS-1 )] |= CHSV(dothue, 200, 255);
    dothue += 32;
  }
}


void sinelon()
{
  // a colored dot sweeping back and forth, with fading trails
  fadeToBlackBy( leds, NUM_LEDS, 20);
  int pos = beatsin16( 13, 0, NUM_LEDS-1 );
  leds[pos] += CHSV( gHue, 255, 192);
}

void rainbow() 
{
  // FastLED's built-in rainbow generator
  fill_rainbow( leds, NUM_LEDS, gHue, 7);
}


void rainbowWithGlitter() 
{
  // built-in FastLED rainbow, plus some random sparkly glitter
  rainbow();
  addGlitter(80);
}

void addGlitter( fract8 chanceOfGlitter) 
{
  if( random8() < chanceOfGlitter) {
    leds[ random16(NUM_LEDS) ] += CRGB::White;
  }
}

r/ArduinoHelp • • Apr 16 '20

Circuit boards

2 Upvotes

When creating a circuit board can you have power going to potentiometer and then the the ground going to the the ground can you hook up for say an led to the 3rd prong of said potentiometer


r/ArduinoHelp • • Apr 01 '20

DIY - Pendulum Clock Using Arduino

Thumbnail
youtube.com
2 Upvotes

r/ArduinoHelp • • Mar 31 '20

NRF24L01 Not transmitting/ receiving

2 Upvotes

So I am trying to build an automated door lock for my room with the help of Arduinos. So far I have two Arduino, one a nano (the transmitter) and a mega (the receiver). I am using two NRF24L01 wireless chips to connect the two however I cant seem to get them to talk. I have tried various transmitter test codes to see if they are picking each other up but I have gotten nothing. Idk what I am doing wrong, I have tested both chips with a volt-meeter and both are receiving power so I don't think either is short-circuited. I have triple checked the wiring and I have installed the NRF24 libraries. The serials are set to 9600 and still nothing. However, I added an else statement to my code that tells me when they are not connected and the Serial.println(" No Radio Available") does show up on the serial output for the receiver. Not sure what to do at this point, anything will help!


r/ArduinoHelp • • Mar 27 '20

Does anyone know why is this happening? It has no uploaded sketch. It stops when I switch pins, but still no sketch can be ran

2 Upvotes