RSM
  • Member for 7 years, 7 months
  • Last seen more than a month ago
Can you access the EEPROM of an ATtiny with Arduino Code?
Accepted answer
9 votes

The Arduino EEPROM library is compatible with the ATTiny range of AVR microcontrollers as the library itself is built on the standard Atmel AVR avr/eeprom.h 'library' so it is compatible with all the ...

View answer
Thermometer project shows fluctuation due to varying sensor value and voltage
Accepted answer
5 votes

What you need to do is take an averaged reading, this is because the sensor is always fluctuating, noise on the 5V line or the signal line. There are possible hardware solutions. Adding a capacitor ...

View answer
One free pin. Need to display output for the user?
4 votes

Seems you have I²C on the board you could possibly use an I²C LCD backpack, like from breakouts if you already have an LCD, this means you can have the RTC and display on the I²C bus and probably more ...

View answer
Standalone Arduino with ATMEGA328P / Serial working, but serial programming not (only once after buning bootloader)
Accepted answer
4 votes

There is a problem with your circuit and the way you have it wired when programming. You have failed to use the RTS line for Serial programming. You need to have that line connected to the RESET of ...

View answer
coding problems
3 votes

Welcome to Arduino.SE. I am not going to rewrite the code for you but from this and other answers and comments you should be able to correct the code for yourself from constructive criticism. To start ...

View answer
Setting the frequency of a timer interrupt
Accepted answer
3 votes

I second BrettAM's comment. The Arduino IDE sets most of all the timers up for PWM, and I had to comment out a section once to use my own ISR with Timer 3 on a 32u4, because no matter where or ...

View answer
Did I fry my ESP8266 module or was it something wrong with it?
3 votes

By the looks of the information you have provided, it looks as though you have not made the crossed serial connection: rx-tx tx-rx. Your wiring: Arduino | ESP8266 3.3V | VCC 3.3V | CH_PD ...

View answer
Detecting mutual contact between balls
2 votes

Option 1 Seems you say you can make the balls out of whatever you want, I would suggest the spheres be made of a metal and then you can either suspend them by wire spot welded or soldered onto the ...

View answer
trying to use millis()
Accepted answer
2 votes

The problem here is that the variables you declare in your function are not static. The rest of the code works as expected. Where you declare the variables at the beginning of your function is correct....

View answer
Digital Pin State - Some 1, Some 0
2 votes

The effect you are seeing is the result of floating pins. Because the inputs are not at any defined voltage level and will 'follow' the voltage applied. So leaving them unconnected with no defined ...

View answer
2WD robot - logic error
Accepted answer
2 votes

I believe that your error is in that you declare LEDpin as pin 13 and then your motor B as pin 13 as well, that to me would result in errors when you write to the led in the else statement at the end ...

View answer
Brand new to Arduino, and can't even make an LED blink
Accepted answer
2 votes

Other than what what Nick Gammon said that you need the resistor from the board to led, as that will cause your microcontroller pins to get damaged. The other possible problem is the two breadboards ...

View answer
Arduino documentation on PCIFR and PINC
Accepted answer
2 votes

Welcome to Arduino.SE. The documentation that you seek on PCIFR and PINC would not be documented under Arduino, this is as these are directly related to the ATMega328 (AVR Atmel micrcontroller) which ...

View answer
How do I count time in seconds?
2 votes

What you can also use is non-blocking code, where delay() would block for the 30s. My suggesting makes use of millis(), one could say similar to blink without delay code example. Here is an example ...

View answer
RC drag strip finish line with mph calculation (using 1" spaced lasers)
2 votes

ONE: What you can do is use a while loop waiting for the first pulse and then wait until the last pulse, for an idea look at this code from Gadjet, he made a chronograph with a similar operation, you ...

View answer
Simple network protocol to communicate between N slave arduino and 1 central arduino?
2 votes

You have quite a few options available to you as your requirements are filled by quite a few protocols, I am not going to list all. You can use things such as I2C, CAN, RS-485, RS-232. You can find ...

View answer
Using / calibrating pH sensor module
2 votes

USB power vs linked Just to add my 2 cents on your latest update about the USB or 5V from the PI. You say you connect it to the VIN: as soon as I power the nano from the RPi (5V connected to vIn),...

View answer
Multiplexing help for relay and pwm
2 votes

You can use shift registers to control the relays. This will only use 3 pins and allow you to use the xbee. For the RGB LEDs you can use the TLC5940 to control 16 channels, so you will need two, ...

View answer
How do I turn on or off an array of LEDs based on the value of a variable?
2 votes

You can use the barGraph example from the Arduino code examples. This gives a bar-type graph and not point. I will give rough explination why it will work and the need not to re-invent the wheel. ...

View answer
Failed to read DHT22 sensor using Intel Galileo Gen2 board
1 votes

The article link by Nick is the same that I found, so it must be a well search problem. What is described on the Intel forum is that the Galileo is not capable of direct communication with the sensor ...

View answer
How can I turn this into an (Ableton) controller?
1 votes

You can use the analog route by using a CD74HC4067, then you can hook it up to a analog demultiplexer, such as the CD74HC4067(breakout from SFE) which has 16 analog/digital inputs. You would use one ...

View answer
Design considerations for creating an Arduino 'shield' shield to limit EMI
Accepted answer
1 votes

What would be helpful would be explanation of the type of AC you are using and then possibly a schematic or board layout. That aside, there does seem to be noise between the two boards. The Idea of ...

View answer
using millis() for a timer
1 votes

The problem is in the logic, basically your statement: if (cMillis - pMillis > interval) { pMillis = cMillis; digitalWrite(ledPin, HIGH); Serial.println("On"); ...

View answer
Running sensor input for given time, stopping, then running seperate scheduled relay output
1 votes

If you are just running the relays off the 1 Amp supply, and there aren't more than 6 relays they shouldn't draw more than an amp.(I will edit this statement if need be) What you can do in the way of ...

View answer
Sketch behaves differently when motor driver is added
1 votes

You have got quite a bit of difference between the two codes. In your first code you declare char inByte = ' '; at the beginning of void loop. This means that each time you run through the loop it ...

View answer
How do I communicate with a sensor via an Arduino's RX/TX ports?
Accepted answer
1 votes

You don't mention the sensor brand or a datasheet so this will be a very general answer to the problem. Firstly, how you have the sensor connected now should just spool info into the Serial monitor ...

View answer
SparkFun EL Sequencer does not work
Accepted answer
1 votes

It looks like Sparkfun probably only put the bootloader on the board. The tutorial is written in a way that suggests the need to flash the board. Also the board does not imediatly work with the 12V ...

View answer
Trying to print text on LCD display from Arduino trinket
1 votes

Operating this display should not be out of the range of the ATTiny85 abilities. I have one using a two-way serial connection for a setup routine, that modifies EEPROM values. First off connect to ...

View answer
Am I multiplexing my LEDs correctly?
Accepted answer
1 votes

So I mean it works. But why is this? It works because the LED inside the RGB LED, all three of the LEDs inside have the characteristic of a diode, this means it will allow current flow in one ...

View answer
Why is my LED blinking?
Accepted answer
1 votes

The beginning of your code in the loop: void loop() { digitalWrite(ledPin,LOW); //remove this line here if (digitalRead(switchPin)==HIGH) { digitalWrite(ledPin,HIGH);//DBG delay(500); }...

View answer