arduino-uno

Get Xbee response from Serial and send to a browser

拈花ヽ惹草 提交于 2019-12-11 14:34:19
问题 I am trying to do some experiments with Arduino, Ethernet Shield and Xbee Shield. I demonstrate my set up board like this: Group 1: Arduino Uno + Xbee shield : broadcast the signal Group 2: Arduino Uno + Xbee shield + Ethernet shield: receive the signal from group 1, get the signal strength from AT command and print it into the browser. The problem here is I can't get the result after sending to the Serial my ATDB command, actually, I am not sure it did worked as I expected. Here is the code

Maximize Arduino serial output

给你一囗甜甜゛ 提交于 2019-12-11 13:47:41
问题 There are a multiple questions intersperced throughout this post. Kindly read carefully and answer the pieces you can for an upvote. Use Case Create a time series csv file of pressure reads. These reads need to be of maximum frequency, but I only need it to last less than 10 seconds or so. Material Arduino Uno Clone (unalterable) serial over USB 2.0 (alterable) pyserial (Python 3) SSD Problem Identify and fix the bottleneck preventing frequency from maximum reads/s. The code Arduino void

cylon.js & arduino uno: execute program without cable connection to PC

萝らか妹 提交于 2019-12-11 13:37:30
问题 I am new to this field, so this might be an odd question. We can write a code(say blinking lights) in the aduino IDE and upload it to arduino and we can disconnect from the pc and the program will run. (blinking will happen). Now when we are using cylon.js and write the program and execute say $ node blinking.js then as long as the arduino is connected to the pc(or laptop) the blinking happens and when I kill node js or disconnect arduino from pc the blinking stops. (this is how its suppose

How to print response to AT commands in Arduino serial port?

心已入冬 提交于 2019-12-11 12:38:29
问题 I want to print the response to AT command. I'm sending AT command but I'm not getting any response in the Arduino serial port. It's giving -1 instead of OK. #include "SoftwareSerial.h" String ssid = "connectify-krish"; String password = "12345678"; String myword= ""; SoftwareSerial esp(10, 11); void setup() { Serial.begin(9600); esp.begin(9600); esp.write("AT"); Serial.println(esp.read()); } void loop() {} 回答1: As already pointed out in the comments you are not terminating the AT command

2 PIR motion sensors +Arduino

爱⌒轻易说出口 提交于 2019-12-11 11:23:13
问题 My project is to allow automatic lightening by detecting motion using PIR Sensors. THis is what I want to do : when the first motion sensor "inputpin" is HIGH which means a motion1 is detected , ledPin1 is set to HIGH.... then I check the signal from the other PIR sensor "inputpin2" if it is HIGH ledPin3 should be HIGH , If it is LOW ledpin2 should be HIGH. I wrote this code , but what it actually do is after a motion is detected from the first sensor"inputPin" , ledPin3 is set to high as if

Arduino Uno + ESP8266 reading server's response

大憨熊 提交于 2019-12-11 09:48:40
问题 I'm sending a GET request from Arduino Uno using ESP8266. The request is sent, but I'm unable to print the received response. I'm using code from https://elementztechblog.wordpress.com/2015/05/13/esp8266-based-temperature-data-logger-using-arduino/ I have changed the code for connecting to my server and I can see the GET request is received on my server's log. I tried putting while (ser.available()) { Serial.write(ser.read()); } after the Serial.println("AT+CIPCLOSE"); statement. BUT I'm not

Digital audio formating

天大地大妈咪最大 提交于 2019-12-11 07:59:07
问题 I have a vectorized wav file with values between -1 and 1, 88,200 samples, 44.1 kHz sampling rate to hear the audio within two seconds. I'd like to send the audio through bluetooth to a bluetooth module, arduino, DAC, and 3.5mm breakout board with earbuds. I am getting crackly audio when I receive it at the end. I tried to recreate this is MATLAB and it turns out to be a combination of the scaling (multiplying + shifting the values over 0) and the sampling rate change due to the receivers. Of

Communication between Arduino and android via ethernet shield

妖精的绣舞 提交于 2019-12-11 07:36:24
问题 I'm using Android to toggle my led light with Arduino and ethernet shield. It didn't work despite having no problems during compilation neither on Android nor Arduino. I connected the ethernet shield with my computer and I gave it the same address as my computer. This is my Android code: import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.MotionEvent; import android

Send data sensor from arduino to esp8266 who send it to the cloud using SSL

别等时光非礼了梦想. 提交于 2019-12-11 05:37:43
问题 I have an arduino Uno which collect data from sensor, i want to send this data to the cloud using wifi esp8266 who support SSL using the library WifiClientSecure, is there an alternative to send data from arduino to the esp card and esp8266 read this data and send it after that to the cloud, i'm able to work with mqtt but i want to know if there is a way to have a directly connection between the arduino uno and esp8266 without having a third part, any help will be gratefull. 回答1: According to

Global variable arduino

我的未来我决定 提交于 2019-12-11 04:39:10
问题 I'm using I2C to communicate a Master Arduino to 4 Slaves Arduinos, and an Shield (OULIMEX Shield LCD 16x2) on every Arduino slave. I send Data from the master to slaves using I2C. So I use this code in the master : #include <Wire.h> #include <math.h> #include <floatToString.h> double incomingData; void setup() { Wire.begin(); Serial.begin(9600); incomingData = Serial.parseFloat(); //read incoming data } void loop() { delay (1000); if (Serial.available()) { incomingData = Serial.parseFloat();