Bitwise operation |= in C

| performs a bitwise OR on the two operands it is passed. For example, If you look at the underlying bits for 0x0A and 0x50, they are 0b00001010 and 0b01010000 respectively. When combined with the OR operator the result in b is 0b01011010, or 0x5A in hexadecimal. |= is analogous to operators like += and -= in that it will perform a bitwise OR on the two operands then store the result in … Read more

Control an Arduino with Java

You can use the JArduino (Java-Arduino) library, which provides a Java API to control your Arduino using serial port (using a USB cable, or wireless devices behaving as serial ports from a software point of view), UDP (via an ethernet shield). All the code related to communication between Java and Arduino is managed internally by … Read more

Windows .NET API / Windows 7 / Bluetooth communication with Intel Curie Arduino / Genuino 101

Microsoft Bluetooth stack on Windows 7 does not support BLE. You have to use third party Bluetooth drivers in this case. BlueSoleil works good. On Windows 8 and above you can use Microsoft Bluetooth stack to work with BLE devices. However each Bluetooth drivers have own API. I am not sure about free 32feet (if it support BLE and … Read more

avrdude: stk500v2_ReceiveMessage(): timeout

This is the main error that I get when I try to run my ARDUINO program. The full list of errors is as follows: My code is as follows: I have tried updating the drivers (they are fully updated) and downloading some programs. I have Windows 7 and my arduino is a MEGA 2560. It … Read more

Arduino Sketch upload issue – avrdude: stk500_recv(): programmer is not responding

I had this problem with a Crowduino, running the Arduino IDE on OS X. The solution for me was to switch on verbose output during upload (in the Arduino IDE preferences pane). Then, when uploading, you can see AVRDUDE sending three packets avrdude: Send: 0 [30] [20] (with corresponding RX flashes on the board) right before the avrdude: ser_recv(): programmer is … Read more

Arduino Sketch upload issue – avrdude: stk500_recv(): programmer is not responding

I had this problem with a Crowduino, running the Arduino IDE on OS X. The solution for me was to switch on verbose output during upload (in the Arduino IDE preferences pane). Then, when uploading, you can see AVRDUDE sending three packets avrdude: Send: 0 [30] [20] (with corresponding RX flashes on the board) right before the avrdude: ser_recv(): programmer is … Read more