Unanswered Questions
286 questions with no upvoted or accepted answers
7
votes
0
answers
394
views
Handling non-standard I2C read response lengths with Wire library
I'm trying to read from a Sam&Wing XW12A 12 channel touch sensor IC using I²C. The IC responds to an address read packet with 16 uninterrupted bits representing its state.
However, since I²C ...
5
votes
0
answers
7k
views
Why is Wire.onReceive() called during requests?
I'm building a complex I2C-based networking protocol and have noticed that the Wire.onReceive() handler is called both for I2C read and write operations. When the master writes to the slave, it is ...
4
votes
0
answers
718
views
ArduinoDue - Matlab: SerialUSB.write() sends ASCII?
I'm trying to get some binary data from an Arduino Due to Matlab.
Basically this is the setup:
Due:
byte usbMsg[33]= {0};
// filled with dummy as example
usbMsg[1] = '00000001';// in[3];
usbMsg[2] =...
3
votes
0
answers
227
views
Using 2 VL53L4CD ToF sensors and getting error after getting first reading
pretty new to arduino stuff and was hoping to get some help with my code.
I'm trying to use 2 ToF sensors and get continuous readings from them. I understand that I have to use the xshut feature and ...
3
votes
0
answers
204
views
Black screen when using higher SPI-speed for RA8857 LCD-controller
I'm using an Arduino Due that talks via SPI to an LCD (800x480) with the RA8875 controller chip.
The most recent datasheet I could find is: RA8875 datasheet.
Everything works as expected when using ...
3
votes
0
answers
713
views
Getting atsam3x8e (Arduino Due) to work
I decided to make a pcb based on the atsam3x8e (microcontroller used in Arduino Due). For the design I copied most of the layout that I found on this site and looked at the official Arduino Due ...
3
votes
0
answers
2k
views
How to use SPI to set/ read registers for a sensor (Avoiding need for Github Lib)
Ok so as some readers might have seen, my current project involves using MPU's. The idea is sending data via CAN bus to a controlling MCU to then send to a raspberry pi to perform the calculations ...
3
votes
1
answer
2k
views
Creating a sine wave with a DAC and feeding it back
I want to produce a digital sine wave, send it to DAC0, and then receive it back as input on A0 and plot the graph. I am using an Arduino Due. I wrote the following code:
#define maxSamplesNum 120
#...
3
votes
0
answers
522
views
Connecting arduino and EV3 using I2C
I'm trying to connect arduino uno and ev3 by using this guide (http://www.dexterindustries.com/howto/connecting-ev3-arduino/),
everything works perfectly but when i tried to use analogRead block to ...
3
votes
0
answers
378
views
Connecting Arduino Due's DAC output to pc sound card with protection
I would like to connect the DAC outputs of my arduino board to my pc sound card input so that I can use my sounds card as an osciloscope.
I have two questions:
1- if I don't use an amplifier, how ...
3
votes
0
answers
692
views
ATtiny85 + HC-05 + Oled = smart watch
I am using an ATtiny85 for making a smart watch. Bluetooth module HC-05 with ATtiny85 pins PB3->TX, PB4->RX and it works. Secondly I have connected a 0.96" OLED on PB0 (SDA) and PB2 (SCL) and this is ...
3
votes
0
answers
129
views
Reading Reveive Hold Register from USART in SPI Mode on Arduino Due
Sending with this function here works fine:
uint16_t usart0spiTransfer16(uint16_t spiMessage16) {
uint16_t sdo = 0;
byte firstByte = spiMessage16;
byte secondByte = (spiMessage16 >> ...
3
votes
0
answers
150
views
How can I send a number from a master and make the slave read it?
I am building a fan controller using an Arduino and a Raspberry Pi (the Pi is the master and the Arduino is the slave). The Raspberry Pi generates random numbers and I want the slave (Arduino) to be ...
3
votes
0
answers
323
views
Arduino Due upload firmware issue
I have Arduino Due on SAM3x8e. I'm on Ubuntu 14.04. Before today I uploaded firmware via terminal using those commands:
$ stty -F /dev/ttyACM0 speed 1200 cs8 -cstopb -parenb
$ /home/q/apps/devel/...
3
votes
0
answers
883
views
Arduino Due native programming port
Arduino does not recommend to program the Due board via Native port as it is not reliable:
If the MCU crashed for some reason it is likely that the soft erase procedure won't work as this procedure ...