Most Popular
1500 questions
12
votes
6 answers
Send AT commands to ESP8266 from Arduino Uno via a SoftwareSerial port
GOAL
From Arduino UNO, send AT commands to ESP8266 via a SoftwareSerial port and receive results.
CURRENT STATUS
I either send AT commands and get nothing back (wiring scheme 1) or I send AT commands and get garbage back (wiring scheme 2).
Using the…
Paul
- 223
- 1
- 2
- 8
12
votes
1 answer
Update Dynamically Tkinter Widget Scale from Arduino Ports using python and firmata
I'm having trouble trying to get Arduino digital ports values and set these values into a Python Tkinter Widget Scale.
I'm using Python and Arduino with Firmata. I'm able to access my arduino board with python code. For example in a label widget…
Vinicius Biscolla
- 121
- 1
- 4
12
votes
3 answers
How do I use I2C devices with Arduino?
I have a few useful I2C components, such as a 16-bit port expander (MCP23017), which I'd like to use in various projects.
What do I need to do to make these work with Arduino? Will it work with any Arduino, or do I need a specific board or shield?
Peter Bloomfield
- 10,982
- 9
- 48
- 87
12
votes
3 answers
What is the advantage of using a motor shield if I want to use a stepper motor?
I know that it is possible to connect a stepper motor directly to an arduino (as displayed here). I know that another option is to use a motor shield (for example the Arduino Motor Shield or the Adafruit Motor Shield).
What I would like to know:…
Majiy
- 365
- 2
- 7
12
votes
1 answer
What are the steps involved in porting an Arduino library?
I want to use the Adafruit CC3000 and its Arduino libraries on another platform. In this case it's the Arduino pin compatible PSOC4 Pioneer Kit. This is an ARM Cortex M0 based platform.
My question is: How would I go about porting a library like…
akellyirl
- 2,156
- 1
- 15
- 19
12
votes
3 answers
Writing C Program outside of Arduino IDE?
I like the idea of using the Arduino IDE for simple projects and for getting started with Arduino, but the consensus I've gotten so far is that it is for those who are new to Arduino and/or programming in general.
My understanding is that it is…
smeeb
- 509
- 2
- 10
- 21
11
votes
3 answers
How to call C functions from Arduino sketch?
I would like to know if there is a way to call functions that are contained within C files using an Arduino sketch?
My C file declares and defines a function. To save putting the messy function definition into my Arduino sketch, I'd like to call…
user_name
- 317
- 1
- 3
- 11
11
votes
4 answers
SAM3X8E (Arduino Due) Pin IO registers
How do the IO registers of Arduino Due work?
On Arduino Uno just set DDRx, then PINx to read, PORTx to write, I'd like to do the same thing with an Arduino Due, but it has many more registers, such as PIO_OWER, PIO_OSER, PIO_CODR, PIO_SODR, etc. I…
Alex
- 315
- 2
- 3
- 9
11
votes
3 answers
Why are the pin numbers of the diagrams and of the code different?
If I search Google for "arduino nano pin numbers", all results show that the pin number of D2 is 5. But that did not work. I searched for some sample codes, and they were 3 for D3 and 5 for D5, etc. So, in codes, the pin number for Dn is n. Then…
Damn Vegetables
- 357
- 1
- 3
- 9
11
votes
2 answers
3.3V, 5V and 9V pins on Arduino
On my Arduino Uno R3 and Arduino Mega R3, there are 5V and 3.3V pins.
However on this page Introduction to the Arduino Board, there is a 5V and 9V pin but no 3.3V pin. The page at Arduino: What Adapter? also mentions a 9V pin.
Why is there a…
Nyxynyx
- 1,419
- 4
- 23
- 25
11
votes
4 answers
How to move from arduino to physical prototype
I've been reading a bit about moving from Arduino to PCB and it seems a bit daunting. For now, all I really want to do is take something I've built, and make a few changes so that I can actually create a casing for it and make sure everything stays…
mheavers
- 247
- 6
- 14
11
votes
6 answers
Setting serial number on CH340 USB-Serial device
Reading http://playground.arduino.cc/Linux/Udev there appears to be a way to write out to a FTDI USB-Serial EEPROM to set a given SerialNumber, allowing you to identify a given nano/other arduino to handle it specifically in UDEV.
I have a…
jvc26
- 265
- 1
- 2
- 7
11
votes
4 answers
avrdude ser_open() can't set com-state
When trying to upload the blink sketch to my (unofficial) Arduino Uno, I get the following error:
avrdude ser_open() can't set com-state for "\\.\COM3"
I have programmed this Arduino before using this same laptop, but not for quite some time. I…
rozzy
- 213
- 1
- 2
- 6
11
votes
1 answer
Arduino IDE and subfolders
I have a sketch with multiple source files and folders arranged like so. I've divided up the project like this to keep things clean.
|
\---project
| project.ino
| types.h
|
+---sub1
| gadget1.c
| gadget1.h
…
user3404036
- 111
- 1
- 3
11
votes
3 answers
What is the difference between declaring a variable outside of loop and declaring static inside loop?
These are two ways I can hold a variable outside of loop (or any function).
First, I can declare it with global scope outside of loop:
void setup()
{
Serial.begin(9600);
}
int count = 0;
void loop()
{
Serial.println(count);
count++;
…
Cybergibbons
- 5,420
- 7
- 34
- 51