arduino-uno

How to replicate pyserial sending RGB values to Arduino in jUART?

送分小仙女□ 提交于 2019-12-11 04:36:51
问题 I have been using pyserial in a locally running Python application to send RGB values to an Arduino with: import serial import struct ser = serial.Serial('/dev/ttyACM0', 9600) ser.write(struct.pack('>3B', red_value, green_value, blue_value)) # where the rgb values are ints like 77,75, 0 I'd like to now achieve this functionality from a non-local website. jUART seems to be designed for this purpose, ie a: Cross platform browser plugin for serial port communication from JavaScript It requires

Connecting Arduino Uno with Ethernet shield to parse.com database

筅森魡賤 提交于 2019-12-11 04:08:14
问题 Hey I'm new to Arduino programming, I was wondering how i can connect my device to store data to parse.com. I know the REST API Key but not sure one what to do. Any help would be appreciated, and if possible can you provide source code or examples. Thanks! 回答1: This is now possible. An Arduino Uno + ethernet shied still can't make HTTP requests, and parse.com still needs HTTPs, but Temboo makes it possible. Here's what you need to do: Create an account at Temboo.com Go to the Parse bundle

Command Arduino Uno using Ardulink

廉价感情. 提交于 2019-12-11 01:33:54
问题 I am trying to command my Arduino Uno using Ardulink library in my JAVA Application but without success I don't know what have I missed, here is my code: Link link = Link.getDefaultInstance(); boolean connected = link.connect("COM6", 57600); Thread.sleep(2000); MessageInfo msg=link.sendPowerPinSwitch(17, IProtocol.POWER_HIGH); Thread.sleep(5000); link.disconnect(); In arduino example, it uses this functions of the Servo class to command: attach(port);pinMode(A3,OUTPUT); digitalWrite(A3, HIGH)

OSError: [Errno 13] Permission denied: '/dev/ttyACM0' - using pyserial from Python to Arduino

眉间皱痕 提交于 2019-12-09 06:05:46
问题 Environment Linux Mint 17.1 Python 2.7 pyserial 2.7 Arduino UNO rv3 Desired Behaviour I'm trying to send three values from a Python application to Arduino. It works when doing the following from terminal: $ python $ import serial $ import struct $ ser = serial.Serial('/dev/ttyACM0', 9600) $ ser.write(struct.pack('>3B', 255, 0, 0)) Current Behaviour It doesn't work when using the same code in a Python file ie: import serial import struct ser = serial.Serial('/dev/ttyACM0', 9600) ser.write

How to store value in list (python) which is coming from arduino serially?

喜欢而已 提交于 2019-12-08 01:28:38
问题 In my recent project, I hava to transfer data from Arduino to python. And it is already done. Here, it my Arduino code: float TPS_MIN = 0.00; float TPS_MAX = 5.00; float MAP_MIN = 0.85; float MAP_MAX = 1.90; float LOAD_MIN_TPS = 2.00; float LOAD_MAX_TPS = 10.00; float LOAD_MIN_MAP = 9.69; float LOAD_MAX_MAP = 82.18; float m1, m2; float y1, y2; float TPS[] = {0, 0.4, 0.8, 1.2, 1.6, 2, 2.4, 2.8, 3.2, 3.6, 4, 4.4, 4.8, 5}; float MAP[] = {0.85, 0.95, 1.05, 1.15, 1.25, 1.35, 1.45, 1.55, 1.65, 1.75

How to store value in list (python) which is coming from arduino serially?

允我心安 提交于 2019-12-06 13:23:32
In my recent project, I hava to transfer data from Arduino to python. And it is already done. Here, it my Arduino code: float TPS_MIN = 0.00; float TPS_MAX = 5.00; float MAP_MIN = 0.85; float MAP_MAX = 1.90; float LOAD_MIN_TPS = 2.00; float LOAD_MAX_TPS = 10.00; float LOAD_MIN_MAP = 9.69; float LOAD_MAX_MAP = 82.18; float m1, m2; float y1, y2; float TPS[] = {0, 0.4, 0.8, 1.2, 1.6, 2, 2.4, 2.8, 3.2, 3.6, 4, 4.4, 4.8, 5}; float MAP[] = {0.85, 0.95, 1.05, 1.15, 1.25, 1.35, 1.45, 1.55, 1.65, 1.75, 1.85, 1.9}; int i; int j; void setup() { Serial.begin(9600); } void loop() { m1 = (LOAD_MAX_TPS -

Arduino Uno Upload Fails

£可爱£侵袭症+ 提交于 2019-12-06 03:46:55
I have received an arduino uno and some code for it as part of a project I am working on. I have never worked with them before so this is a completely new experience for me. I am using the Arduino application from their website and when I compile the code it works fine. When I upload however I get the error: avrdude: stk500_getsync(): not in sync: resp=0x41 I have looked at every single google result returned for this and I haven't gotten anywhere. I have tried uploading on 3 different machines with a minimum of two different operating systems on each machine. How on earth do I get it to

Mac + Uno + avrdude: stk500_recv(): programmer is not responding

大城市里の小女人 提交于 2019-12-05 16:09:15
问题 I'm trying to upload .hex file to Arduino. I don't have any problems with uploading code through an IDE (like blink example or any other). The port and board are correct. So, the problem appears when I try to upload avrdude -pm328p -carduino -P/dev/tty.usbmodemfd121 -b57600 -D -Uflash:w:grbl_v0_8c_atmega328p_16mhz_9600.hex -v -v -v -v avrdude: Version 6.1, compiled on Mar 23 2014 at 04:42:55 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch

Arduino doesn't get recognized

余生颓废 提交于 2019-12-04 07:02:57
I'm not certain this is the right place to ask, but I've seen other Arduino threads on stackoverflow, so I just assume it's ok. My arduino uno-compatible board is not getting recognized. I tried it on windows 8 and on windows xp. When I open the device managers, there is just one entry called 'USB serial port' under the 'Ports (COM & LPT)' section. The Arduino, however, does blink when connected. I tried uninstalling the usb serial port drivers, or updating them, but both don't work: the drivers seem to be up to date and when I uninstall and reconnect the arduino, they appear again. When I try

Mac + Uno + avrdude: stk500_recv(): programmer is not responding

本小妞迷上赌 提交于 2019-12-04 01:48:10
I'm trying to upload .hex file to Arduino. I don't have any problems with uploading code through an IDE (like blink example or any other). The port and board are correct. So, the problem appears when I try to upload avrdude -pm328p -carduino -P/dev/tty.usbmodemfd121 -b57600 -D -Uflash:w:grbl_v0_8c_atmega328p_16mhz_9600.hex -v -v -v -v avrdude: Version 6.1, compiled on Mar 23 2014 at 04:42:55 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/usr/local/Cellar/avrdude/6.1/etc/avrdude.conf" User configuration file