arduino

Receive BLE signal from iBeacon to Bluno(arduino with BLE)

被刻印的时光 ゝ 提交于 2019-12-24 14:28:35
问题 I want to receive rssi signal and UUID from iBeacon to Bluno which the Arduino board has BLE. there are some questions for this. Are there any solutions to receive UUID and rssi from BLE to BLE? Is it possible to communicate two BLE device each other? I want some sites to reference for this problem. I also need to connect bluno with AR.Drone. Could you give me some advices for this? thank you for your help 回答1: The Bluno has the ability to act as an iBeacon (transmitter), but it doesn't have

Can sombody simplify this equation for me?

久未见 提交于 2019-12-24 13:46:16
问题 I know I can use Mathematica, but sadly I dont have one. I just want to find the A,B,C,D form matrix | X1^3 x1^2 X1 1 | |A| |y0| | X2^3 x2^2 X2 1 | |B| |y1| | X3^3 x3^2 X3 1 | X |C| = |y2| | X4^3 x4^2 X4 1 | |D| |y3| I just want to find the simplified equations for A, B, C and D. Actually I am trying to do a program in arduino that requires curve fitting using 4 points, so that I can predict the future points. I have seen this post , but parabola isn't accurate enough for my need. I have

Arduino: Class with Servo corrupts servo behavior if this->object.attach(pin) is used in constructor

為{幸葍}努か 提交于 2019-12-24 12:51:55
问题 I have an issue with a solution, but I don't understand the solution. It may be similar to Arduino: initialise custom object in constructor but I don't think this is the same issue. The context is the following. I am controlling a small legged robot with a Arduino board. Each leg is an object "MChLeg" that includes two servos. The servos are controlled using the library. The issue is the following: if I assign the servos in the constructor, the program compiles fine but the servos behave in a

Android bluetooth communication with Arduino

北城余情 提交于 2019-12-24 12:20:33
问题 I am currently looking at Google's Bluetooth Chat example. The goal is to get communication between android and and Arduino working based on this example. While communication from the smartphone to the Arduino is working great, the other direction does not: When sending bytes from the Arduino to the smartphone, the following code is used for receiving: // Read from the InputStream bytes = mmInStream.read(buffer); // Send the obtained bytes to the UI Activity mHandler.obtainMessage

How to read messages from GSM modem in Embedded C?

谁都会走 提交于 2019-12-24 10:57:55
问题 I am currently working on my mini-project under the domain "Internet of Things". I chose to design a wireless Notice board using a GSM module. I divided the project into two modules. First, the Arduino-LED board interface which perfectly completed. Second, GSM-Arduino interface. Basically, a message/SMS will be sent from the mobile phone to the GSM module and then we have to read that message from GSM module using Arduino. I am facing a problem here. The message is being sent to the GSM modem

Arduino reading json from EEPROM / converting uint8_t to char

天涯浪子 提交于 2019-12-24 08:29:41
问题 I'm using ArduinoJSON to write a couple of data points to my EEPROM on Arduino Uno. I'm running into a problem with getGroundedPR where I need to convert a uint8_t to a char to pass retrieved data into my JSON parser. This is my first time using EEPROM so I'm willing to bet there's a better way to do this. Should I continue to use JSON or is there a better way? I'm being cautious of the 10k write limit (give or take) on the EEPROM. the EEPROM read/write is commented out until I have my

Arduino I2S sine wave

对着背影说爱祢 提交于 2019-12-24 08:24:03
问题 I'm working on a project where I want to generate (simple) sound by combining different sine waves. I'm using an arduino mkrZero, as it has I2S interface built in and it seems to have enough processing power for what I want. I have wired my system exactly like in the tutorial for arduino I2S simpleTone: And the tutorial code works just fine, and I get a simple square wave tone from the speaker. Now I have modified the code to generate sine wave, there is a lookup table for the sin function to

Arduino - how to feed a struct from a serial.read()?

守給你的承諾、 提交于 2019-12-24 07:51:15
问题 I am a beginner and I am trying to feed a struct table with 4 members typed BIN with a pointer, then send them to another one, serial2. I fail to do so. I receive 4 chars from serial1.read() , for example 'A' '10' '5' '3'. To decrease the size of the data, I want to use a struct: struct structTable { unsigned int page:1; // (0,1) unsigned int cric:4; // 10 choices (4 bits) unsigned int crac:3; // 5 choices (3 bits) unsigned int croc:2; // 3 choices (2 bits) }; I declare and set: instance and

Obtain buffer fast from arduino using labview

我怕爱的太早我们不能终老 提交于 2019-12-24 07:12:22
问题 I'm trying to read sensor's value obtained from arduino and displaying it on labview using a pulse sensor and a DS18B20 (temperature sensor) however I need the while loop to go fast (around 50 ms) in order to get the waveform chart from the heart pulses but if it goes slower than a minute the values get mixed up (I get temperature instead of the analog sensor value and viceversa) any suggestions to fix this? I obtain the values in a serial.print separated by a comma, so I used a match pattern

“Section type conflict” due to macro definition in GCC 4.8.2

人盡茶涼 提交于 2019-12-24 04:37:08
问题 I get a "section type conflict" if I call a macro in an inlined function. There is nothing which can be found about this error in the WWW. The intention of the macro is to offer a macro to deal with strings saved in the flash for Arduino (just a side info). If the function is not inlined everything is fine. What may be the reason? #undef PROGMEM #define PROGMEM __attribute__(( section(".progmem.data") )) #undef PSTR /* need to define prog_char in avr-gcc 4.7 */ #if __AVR__ && __GNUC__ == 4 &&