8

Important information: Wire.write() does NOT send anything over the I2C lines. It just puts the data into the libraries internal buffer. The actual transmission is then done by Wire.endTransmission(). I2C is packaged transmission protocol. That means, that the transmission is done in confined data packages. In your master code you are calling Wire.write() ...


6

Its not as easy as you think. An Arduino will not be enough for connecting the USB of the 3D printer. The USB protocol is strictly divided into slaves and masters. A USB(us) has exactly one master, which totally controls, what the slave can do. The slave itself cannot do much of its own. Your 3D printer is a USB slave device. That enables a USB master (like ...


3

It's not exactly clear what you're trying to do, but I think you want to start the vac and start the stepper, then 4 seconds later stop the vac. The 4 second delay forces the rest of your code to wait (doing nothing) during the 4 seconds. Look at the Arduino IDE example program, BlinkWithoutDelay. The technique used there is what you need to use instead of ...


3

It is quite likely you're out of memory. To know, really you need to keep track of the stack pointer and heap structure. There's enough going on in your code, that I'm not reasonably going to be able to set up an identical scenario to prove it. Display Library The greatest use of SRAM in your project comes from the Adafruit SSD1306 library. It's allocating ...


3

I wanted to post an update in April 2021 on the status of this question. The SIM800L will work in the US, but T-Mobile is the only carrier that it can interface with. AT&T shut down its compatible towers in 2017. T-mobile will shut down its 2G network at the end of 2022. So, the SIM800L is only good for another year and a half. Maybe you're better off ...


2

You can't make calls to IMU if you haven't initialised it with IMU.begin()


2

I'm not sure if you ever solved this issue but for me this error was occurring because the ATmega4809 chip was not powered on. By adjusting the wiring I managed to get rid of the "RSP_NO_TARGET_POWER" error. So I would suggest double checking wiring and then use the "Upload using programmer" (in "Sketch" tool-bar menu) to upload ...


2

The Nano, like the Uno, has an onboard serial ↔ USB converter. If you can get a logic level serial from the Moxa, then you can use the Nano to convert that to USB: Load a do-nothing sketch in the Nano Connect the Moxa TX to the Nano's Tx through a 1 kΩ resistor, and the Moxa RX to the Nano's RX. Yes, the second step looks backwards. The reason is that the ...


1

I honestly can't imagine why a sketch like that would hang in this scenario. But I'm confident that my answer can solve the issue. My guess is that the following happens: The flash is selected (CS pulled low by atmega) at the moment at which the reset happens. At this moment, the master will stop generating a clock signal and CS will be floating. Thus, the ...


1

I don’t know where to start but, this worked PERFECTLY! I need to work on stepper speed and ramp Length to smooth out, or jumpers on the DRV8825 expansion bd. Other than that, I want to understand the library! I went to the readme and it explained the thing it can do, but I don’t know how to utilize on my own. I noticed your name and written by are the same! ...


1

The simpler piezos click when a voltage is applied, and again when it is removed. To make it buzz, it needs a pulse-train: many clicks makes a buzz. There are piezos that have that feature built-in, but I'm guessing yours hasn't. That's actually a Good Thing in disguise: it allows you to make tones by making pulse-trains at different frequencies. The easiest ...


1

There's not enough information to provide a general solution at this time. As chrisl rightly says, the 3D printers are expecting a connection from a host. That host connection depends on whether the USB-serial interface inside the printer is supported. These are typically FTDI or WCH (QinHeng) chips, and would need the appropriate system driver for each type....


1

No. That is serial. Just like every other USB to TTL Serial converter. The clue is in the name. You need an Arduino with a dedicated native USB interface, like those based on the ATMega32U4 chip. Or dedicated software on the PC that will read serial data and emulate keypresses (which is outside the scope of this website).


1

When working with Arduino, cplusplus.com is your friend. Scroll down and look on the left side under (string.h). Lot's of great char functions there. Other useful functions such as iota() - cplusplus.com. Here's one way to accomplish the parsing of the input data. // Sketch uses 2064 bytes (6%) of program storage space. // Global variables use 323 bytes (15%)...


1

You can just try converting two digital pins as 5V VCC and ground. This will be useful when we use multiple sensors. #define VCC2 5 // define pin 5 or any other digial pin here as VCC2 #define GND2 2 // define pin 2 or any other digital pin as Ground 2 void setup() { pinMode(VCC2,OUTPUT);//define a digital pin as output digitalWrite(VCC2, HIGH);// set ...


1

You can select "randomly" from your array of quotes by using the random() function to generate an index into the array. One way to send a quote from your phone would be to create a web-page on your Nano to receive the quote. This is a rather more complex project than displaying a random quote so you should plan to get random display working first. ...


1

For completeness, it appears an appropriate Python library can be installed with: pip3 install adafruit-circuitpython-ble The test code, used with the Arduino code 'Echo' from the ArduinoHardwareBLE library is below. This was updated to let you choose the name of the device (here, MY_BLE) rather than any random device that has UART capability. It also ...


Only top voted, non community-wiki answers of a minimum length are eligible