Most Popular

1500 questions
6
votes
2 answers

Using SoftwareSerial for the serial monitor

Most programs follow this route: They have a Serial.begin() for the serial connection between PC and Arduino (the serial monitor) and they use SoftwareSerial for a device. Can you go the other way around? Can you use SoftwareSerial for the…
user1584421
  • 1,395
  • 3
  • 22
  • 36
6
votes
3 answers

Binary serial transmission order of data

I'm implementing a filter for my IMU Sensor and thus I want close to real time data visualized on the computer. I use binary serial communication to facilitate the sending part for the arduino (as far as I know the serial.print is pretty slow). So I…
mike
  • 347
  • 6
  • 20
6
votes
3 answers

How to multiply strings?

I want to have a line like this Serial.println(count*"B"); So if count=6, it would print BBBBBB, etc. Is there anything like this for arduino?
Mirror318
  • 163
  • 1
  • 5
6
votes
1 answer

Is there a portable timer interrupt library?

I have a need for timer interrupt (for the sake of this exercise - say I need to execute something every second) I found code in many places on the internets that does this using ISR for 328/Uno. (or specifically for other chips) But of course that…
Tim
  • 131
  • 1
  • 1
  • 9
6
votes
1 answer

Referencing local libraries from higher dir levels

How can I include libraries not contained in any direct subdirectories of a sketch, using the Arduino IDE? I want my project structure to look like this: Project └> MCUa └> MCUa.ino └> MCUb └> MCUb.ino └> Libraries └> TimerLib └>…
Clausen
  • 161
  • 2
6
votes
2 answers

Sending uint16_t over I2C

How do you transmit and read a uint16_t over I2C? I'm trying to read two uint16_t values from a slave device, and I'm seeing nonsensical readings. This is the code on my slave Arduino Uno: #include void send_wire_int(uint16_t num){ //…
Cerin
  • 1,618
  • 2
  • 24
  • 41
6
votes
3 answers

Serial sensors and the Yun

I am involved in a project that is going to measure PH and chlorine in a swimming pool. The plan is to use a Arduino Yun. The sensors we are going to use are connected using serial. Since we may be using multiple sensors, is there any difference…
Faux_Clef
  • 199
  • 14
6
votes
2 answers

Do I need to supply the 12V connection to an HDD

I'm working on trying to control a hard drive with an Arduino Uno, but I'm having trouble with the power supply. From what I know, both the Molex Mate-n-Lok and the new SATA connectors both have 2 grounds, a 5V and a 12V power in. I'm wondering what…
6
votes
2 answers

Is it possible to program an ESP8266 12F using an Arduino Nano?

I just got my ESP8266, but I am unable to program it. Since it can't be connected to via USB, I was wondering if I can program it using an Arduino or perhaps use it as a shield for an Arduino Nano. I haven't been able to find a good guide online.…
6
votes
1 answer

Problems with transmission between ATtiny85 and Arduino Uno with 433MHz RF modules and Manchester

I am trying to transmit from an ATtiny85 running at 16MHz internal clock to an Arduino Uno with the Manchester Library. The problem is that the Arduino is not receiving any data. I have hooked an oscilloscope to the ATAD/DATA pin of the transmitter,…
sunny-lan
  • 161
  • 2
6
votes
2 answers

A question about resistance measurement with arduino

Lately I was asking myself about the possibility of measuring a potentiometer resistance with Arduino. My questions are: Is it possible? If it's possible, what kind of restriction does the Arduino have with the resistance value measured?
Julio Orozco
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

How do I split a number into individual digits?

How would I split part1 into 2-3 digits and put them into num1, num2, and num3? int FMSTATION = 10250; int update_display() { int fm_station = FMSTATION ; int part1; int part2; part1 = (FMSTATION / 100); part2 = (FMSTATION % 100); …
Austinthemighty
  • 63
  • 1
  • 1
  • 3
6
votes
1 answer

Arduino as a custom I2C slave device

I'm trying to interface with a master I2C device that doesn't exactly follow the normal I2C protocol. The only difference really is in the read request. A "normal" I2C read operation looks like this ([M]aster, [S]lave): S | SLA+R | ACK | Data | Ack…
6
votes
1 answer

Shift Register w/ Internal Pullups?

Is there a chip that is just a parallel in / serial out shift register but with integrated internal pullups? I could use a full-blown I/O expander but I really just need more momentary button inputs. I don't need outputs and I would rather not…
squarewav
  • 191
  • 5
6
votes
2 answers

What is the proper way to implement PID?

I'm having some trouble conceptualizing how to go about implementing PID into my drone. There are a few ways I'm thinking about implementing the pipeline: Having one PID Object for each of the six motors. Having one PID Object for each axis. How I…
tuskiomi
  • 205
  • 1
  • 11