arduino

Read from Serial port to Excel

有些话、适合烂在心里 提交于 2019-12-12 05:32:34
问题 I need to create a button in Excel to read data in from serial port. I can't have any extra files attached to the excel sheet. I need to transfer this excel file to another computer to read this data. Here is how the file is suppose to function: Press button to select the serial port. Then, press another button to read data from serial port into the excel cell. Could someone please tell me how to do this? Use VB macro or ActiveX macro? Sorry, this is the first time i'm using excel for this.

Arduino PINs not behaving equally

送分小仙女□ 提交于 2019-12-12 05:18:36
问题 I have burned this code on my arduino: #include <SPI.h> #include <Ethernet.h> #include <stdlib.h> using namespace std; #define BUFFSIZE 16 #define PIN0 0 #define PIN1 1 #define PIN2 2 #define PIN3 3 #define PIN4 4 #define PIN5 5 #define PIN6 6 #define PIN7 7 #define PIN8 8 #define PIN9 9 #define PIN10 10 #define PIN11 11 #define PIN12 12 #define PIN13 13 // For mac address please view the Ethernet shield. byte mac[] = {0x90, 0xA2, 0xDA, 0x0D, 0x85, 0xD5}; IPAddress server(192, 168, 0, 61); //

Udev rule is not being applied

馋奶兔 提交于 2019-12-12 05:17:05
问题 I am running a Linux chroot environment on an Android device and I am attempting to communicate with an Atmel atmega2560 based (Arduino Mega derived) microcontroller. Doing "ls -ld /dev/ttyACM0" shows the following permissions for the modem: crw------- 1 root root 166, 0 Feb 11 22:28 /dev/ttyACM0 "lsusb" tells me: Bus 003 Devices: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adpater Project "udevadm info --attribute-walk --name=ttyACM0" says: Udevadm info starts with the device specified by

Arduino code anomalies - LCD fails with multiple 'if' statements

那年仲夏 提交于 2019-12-12 05:14:47
问题 I have a question about some code and weird anomalies. This code is placed on a Digispark. The Digispark has a code size limit of 6,010 bytes. When using nested if statements, text is not outputted to the LCD screen (see links below). By commenting out each set seperately I am able to get it working again. Basic LCD functions: LCD outputs internal beer temp and ambient air temp. http://imgur.com/S0rYvaa LCD clears LCD outputs target temp and heater (relay) status http://imgur.com/OtFXG1K

Serial port communication Arduino VC++

社会主义新天地 提交于 2019-12-12 04:54:22
问题 I am not able to write a string on to my Arduino using Visual C++. I am somehow able to open the COM port but not able to send data to the Arduino. What would the problem actually be in my case? int main() { HANDLE hComm; hComm = CreateFileA("\\\\.\\COM11", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0); if (hComm == INVALID_HANDLE_VALUE) { printf("com not opened"); } else { printf("COM OPENED"); } COMMTIMEOUTS cto = { 1, 100, 1000, 0, 0 }; DCB dcb; memset(&dcb,0

arduino serial erratic behaviour missing characters and occasionally the whole transmission

瘦欲@ 提交于 2019-12-12 04:19:44
问题 I have a problem with the hardware serial on the UNO, in many occasions it seems to drop a character (usually the first character being received) and in some cases it misses a whole transmission. this only occurs when the Arduino is receiving data from the computer typed by me in the serial monitor. I can see the RX light flashing when I send the string but the arduino just completely ignores it. The data I am sending is three comma separated 8 bit unsigned integers #include <Adafruit

Send data to arduino as long as the button is being pressed

为君一笑 提交于 2019-12-12 04:18:46
问题 I want to send data to an arduino mega 2560 as long as a button is being pressed and when that button is released it will stop sending informations. I am using onTouchListener with MotionEvent constants. But when I run this on my phone I press the button and it sends data even though after a while I release it. Where am I being wrong here? switch (v.getId()) { case R.id.left1: // check what button is pressed while(event.getAction() == MotionEvent.ACTION_DOWN) { bt.sendData("1"); // while

Why am I not able to call this method after I push a button?

末鹿安然 提交于 2019-12-12 04:15:15
问题 I'm using a pushbutton as a toggle switch. Press it and it does "stuff A." Press it again and it does "stuff B." Why am I not able to call my method checkButtons_slow() ? int prev = 0; int current = 0; int val4 = 0; int val5 = 0; int ledPin = 13; int prev = 0; int current = 0; Servo ZServo; void setup() { ZServo.attach(9); pinMode(pushD3, INPUT_PULLUP); digitalWrite(3, HIGH); pinMode(pushD4, INPUT_PULLUP); digitalWrite(4, HIGH); pinMode(pushD5, INPUT_PULLUP); digitalWrite(5, HIGH); pinMode

Raspberry Pi to Arduino Communication

夙愿已清 提交于 2019-12-12 04:04:05
问题 I am using an opencv algorithm on my Raspberry pi 3. I need to output the data from the raspberry pi to my Arduino. Presently I am using serial, where I simply plug in the arduino to the raspberry pi using the USB connector. But my application requires a faster speed. I thought of exploring i2c communication. It is for a robotic application for which the input sensor values needs to be fast for the robot to respond quickly. Assuming the constraint that I need to push the values to a arduino

2 RX and 2 TX send data from Arduino to Android

给你一囗甜甜゛ 提交于 2019-12-12 03:57:26
问题 I have a device connected to pins RX and TX of my Arduino UNO and I need more pins RX and TX to send data via bluetooth to Android. I plan to use two pins SoftwareSerial to convert into RX and TX for use with the Bluetooth module. I suppose it's possible. I have read on the subject but most I've found is to make the connection and send data from Android to Arduino. I think with me it would be possible Amarino library. If so far everything I have planned well, I have a big doubt. How do I pass