arduino

Custom BLE service with SPP support?

你。 提交于 2019-12-25 01:08:20
问题 I'd like to have bluetooth module with iOS support and Rx/Tx pins. iOS devices support only MFI -certified Bluetooth 2.1 modules (and i can't find any) or BLE modules. But most BLE modules do not have Rx/Ts pins for transparent interaction. As possible solution #1 Adafruit created board based on nRF8001 bt chip with custom BLE service with 1 characteristics for Rx and 1 characteristics for Tx and but unfortunately it supports SPI only and i need direct Rx/Tx pins to be wired to Arduino board

Scilab 5.5.2 function as a block in xcos : Variable returned by scilab argument function is incorrect [

拜拜、爱过 提交于 2019-12-25 00:38:08
问题 I have been trying to get the ultrasonic data from an arduino using serial communication toolbox in scilab to be brought in the xcos simulation. To do this I followed Include a Scilab function/script as a block in xcos/scicos and created my own function. Is there a way to plot the serialread data in xcos scope? or i think my implementation is wrong in the scilab function. Iam Using Windows 10 64bit SCILAB function function y = serialREAD(a) h = openserial(7, "9600,n,8,1") // open COM7 for ii

Adafruit NeoPixel library doesn't work when addressing more than 7 LED strips

风流意气都作罢 提交于 2019-12-25 00:07:42
问题 As of my last question on SO I'm working on an interactive 14x14 LED table which is being controlled by an Arduino Mega (for further information about the setup and code have a look here. After fixing the problem with data arriving at the Arduino in the wrong order I'm now facing this problem: In order to control the colours of each pixel on the LED table using Adafruit's NeoPixel library I read in an array of the form int[14][14][3]. This works fine now, but when I try to set the RGB values

Can you program python onto an Arduino

你。 提交于 2019-12-24 22:25:31
问题 Im looking for a way to program using python on an Arduino. Are there any up-to date interpreters available? I looked at some older questions, but there are no up-to date versions. Specifically, I'm looking for a way to program it on an Arduino Uno rev 3. 回答1: You cannot program an Arduino Uno in Python. You need a more powerful MCU to run a Python compiler/runtime like MicroPython. MicroPythons memory requirements exceed Arduinos specs. 来源: https://stackoverflow.com/questions/58878124/can

Arduino Serial.println weird bug

假如想象 提交于 2019-12-24 21:15:13
问题 I'm trying out arduino and have programmed some button with a state switch. If it was "on" then it turns "off" and versa. #include <Bounce.h> const int buttonPin = 2; const int ledPin = 6; int ledState = HIGH; int a = LOW; int b = LOW; Bounce push1 = Bounce( buttonPin,5 ); void setup() { pinMode(buttonPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop() { push1.update ( ); int x = digitalRead(push1.read()); if (x != b) { if (x == HIGH) { if (a == HIGH) { a = LOW; } else { a

'incompatible types in assignment' when passing custom function type [duplicate]

半城伤御伤魂 提交于 2019-12-24 21:10:34
问题 This question already has answers here : Determine array size in constructor initializer (11 answers) Closed last year . I am creating a class to handle some radio-communication between two radios each connected to an Arduino. I was planning on having a list of functions passed to the class to handle different messages that are received. My problem is that upon saving an array of functions to a private variable I get the following error: incompatible types in assignment of 'void (**)(uint8_t*

Send SMS via Arduino without GSM

徘徊边缘 提交于 2019-12-24 20:32:52
问题 Is it possible for Arduino to send a message to the internet without using a GSM shield? I need an Arduino to send a message pressing a push button, which is connected to an Arduino and Ethernet shield, without using a GSM shield. I need to send a message just by using HTML/PHP API code included in Server via GET/POST. I'm using this code in this code data nicely insert in SQL Database but if successfully insert data send sms via PHP API. But it's not working. Here is my PHP code: <?php

Bluetooth connection in Android > 4.1.2

心已入冬 提交于 2019-12-24 20:06:19
问题 I wrote the following activity to connect my Nexus 7 with Arduino, to simply exchange 0 and 1 to switch on and off a led. I took example from here: http://developer.android.com/guide/topics/connectivity/bluetooth.html#ManagingAConnection and also recalled here: How to connect with paired Bluetooth device programmatic in Android? but it almost never connects or if it connects does not display UI. Almost all the time the app crashes when paused or resumed. I'm sure there is something wrong in

how to send 100 digit in serial communication from processing to arduino

痴心易碎 提交于 2019-12-24 19:29:20
问题 i am converting pixel array to String and send this String to arduino. but i Think this String is not converted properly because Serial.write send (8 bit or 8 character) i don’t know. and also want to send 100 character of string into Serial . please send your suggestion and getting help me out of this problem. for any mistake Sorry in advance. for(int x =0 ; x < img.height; x++) { for(int y=0; y <img.width; y++) { int i = x+y*width; if(img.pixels[i] == color(0,0,0)) { i=1; } else { i=0; }

getting data from arduino and stored in database through ethienet

主宰稳场 提交于 2019-12-24 19:28:32
问题 I am getting data from arduino and stored in database through ethienet. But when i got value ambientemp from arduino. it showed correct value when i tested on serial monitor. but when I use sprintf() I got -3275 or 0 value, which it is not correct value. Here is my partial code in sketch, please help...Here is guy doing his project. The result on Sketch serial montior is: ambientTemp 23.55 and then GET /getData/temp.php?t=-3278 I copied some of him: getting data and stored it into mysql void