arduino

Fading Arduino RGB LED from one color to the other?

╄→гoц情女王★ 提交于 2019-12-20 10:10:58
问题 I've currently managed to get my LED to cycle through eight colors that I've selected. Everything is working correctly, except that I want to go for a more natural feel, and would like to fade / transition from one color to the next, instead of having them just replace one another. Here's my code so far: int redPin = 11; int greenPin = 10; int bluePin = 9; void setup() { pinMode(redPin, OUTPUT); pinMode(greenPin, OUTPUT); pinMode(bluePin, OUTPUT); } void loop() { setColor(250, 105, 0); //

Arduino Bootloader

半城伤御伤魂 提交于 2019-12-20 09:16:21
问题 Can someone please explain how the Arduino bootloader works? I'm not looking for a high level answer here, I've read the code and I get the gist of it. There's a bunch of protocol interaction that happens between the Arduino IDE and the bootloader code, ultimately resulting in a number of inline assembly instructions that self-program the flash with the program being transmitted over the serial interface. What I'm not clear on is on line 270: void (*app_start)(void) = 0x0000; ...which I

Bluetooth -> service discovery failed

∥☆過路亽.° 提交于 2019-12-20 09:04:04
问题 I'm writing an application that is able to communicate with my PC. I have used the Bluetooth functionalities of the SDK 2.1. I can find devices, get their MAC address, create an RFCOMM socket, but when I start the connection, I get the following error message. Service discovery failed. Is it because of the UUID, which is not the same on my application and on my PC? How can I get the correct UUID on my PC? If I write a such application, is my Nexus One the client or the server? 回答1: OK, I got

Connect an iPhone to Arduino over Bluetooth

一曲冷凌霜 提交于 2019-12-20 08:48:07
问题 I would love to be able to let my iPhone-App communicate to my Arduino over Bluetooth. I found some Bluetooth shields that support the following protocols: BCSP, DUN, LAN, GAP SDP, RFCOMM, and L2CAP. From what i found while googling a bit, is that the iPhone is hiding it's bluetooth stack away?!? Is this correct? Is there really no chance to let my iPhone communicate with an other bluetooth enabled device without jailbreaking (which as far as I know would be required if i'd use btstack: http:

HTTP vs TCP/IP, send data to a web server

旧巷老猫 提交于 2019-12-20 08:01:14
问题 I'm currently working on a project where I need to use an Arduino Nano (http://arduino.cc/en/Main/arduinoBoardNano) to send data from a temperature sensor to a web server. At first I thought it would be easy, since there are so many great libraries out there to help with POST/GET etc. However, my professor just told me that I need to send data to the server using TCP/IP, and as I understand it POST and GET are HTTP methods. Could someone explain to me the difference between HTTP and TCP/IP?

Pause without Delay() arduino

此生再无相见时 提交于 2019-12-20 07:32:43
问题 I am using an arduino uno, logic level converter, adafruit Bicolor LED Matrix, a Raspberry pi, and a button but am having some issues. My goal is that when the button is pushed on the pi it sends a signal to the arduino Uno which will change the animation on the LED backpack. The issue is that the button must be held down right when the loop restarts and if you click it any other time it wont work, I think this is because I am using delay() which pauses everything. Is there any way to pause

HM-10 and Arduino - Sending AT commands with no line ending from code

懵懂的女人 提交于 2019-12-20 05:12:30
问题 I need to use HM-10 with Arduino Uno or Nano. I'm not able to figure out how to send AT commands and read the reply. The commands work from serial monitor, but not from code. Here's what I've tried so far: #include <SoftwareSerial.h> SoftwareSerial blueToothSerial(0,1); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(115200); Serial.println("Serial began"); blueToothSerial.begin(9600); delay(2000); } void loop() { Serial.println("looping...");

How to tell if an Android device has Open Accessory Mode

天涯浪子 提交于 2019-12-20 05:01:48
问题 Does anyone know how to check for this? I just bought a Samsung Galaxy Tab 2 (7" version running Android 4.0.3) with the intention of using it to connect to my Arduino Mega ADK board. But I am unsure if the galaxy tab has the necessary Open Accessory Mode listed here: http://developer.android.com/guide/topics/usb/adk.html It seems that just because the software is right doesn't mean that the device is compatible and this varies per manufacture. Since this is a new tablet I am not finding

Faster communication between two ESP8266 in client-server setup

本秂侑毒 提交于 2019-12-20 04:31:51
问题 I am trying to communicate between two ESP8266 12 E modules, one is set up in access point mode and the other as a station. My aim is to establish communication between the two. How can I make the data transfer faster? Is this what is called TCP/IP connection? The code for the access point: #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <WiFiClient.h> WiFiServer server(80); void setup() { WiFi.mode(WIFI_AP); WiFi.softAP("esp", "lol123"); server.begin(); Serial.begin(9600);

How to get turn by turn details real-time to my app

眉间皱痕 提交于 2019-12-20 04:07:59
问题 I'm doing a arduino project for my end year project.I'm making a smart glove for bike riders which can notify phone calls,Health tracking,Geo tracking and Navigation. I want to know is there any method I can get details about turn by turn navigation into my app. i.e :if google navigation said "turn left" get that details and display in my app. P.S:There is a product called Sneakair by easy jet shoes that auto vibrate when turn is arrived. If this is impossible tell me another idea that can