Hot answers tagged

2 votes
Accepted

Send data through SPI with DMA

I managed to solve it but not with SPI, I use the SSC of the µcontroller (which does I²S and uses DMA automatically) : uint32_t liste[] PROGMEM = { 0x8F66F1, 0x0, 0xAAAAAB }; //Data to send #define ...
Vlad's user avatar
  • 49
2 votes
Accepted

Programming barebones ATMega328 with external programmer and no bootloader

The Pocket AVR Programmer is just a standard ISP programmer, meaning it uses the ISP protocol built into the hardware of the microcontroller to write data to flash and EEPROM. That is also the way, ...
chrisl's user avatar
  • 16.1k
2 votes

ESP32 SPI Mutual Communication

For ESP32, unless the exact board variant is specified, by default the macros for MISO, MOSI, SCK and SS are defined as follows and are used for VSPI(i.e. SPI0): static const uint8_t SS = 5; static ...
hcheung's user avatar
  • 1,362
2 votes

Can I use SPI-related pins as a Digital Output?

From the schematics, I can see that IO2 is for the board's blue LED. So that's probably your first problem... From this PDF, I see that IO21 is VSPIHD, Hold for Flash chips. No good. IO16 is HS1_DATA4,...
dda's user avatar
  • 1,588
2 votes

Using SPI on Pi Pico, Arduino IDE

You can read the actual SPI pins with the following sketch void setup() { Serial.begin(115200); } void loop() { Serial.print("MOSI: "); Serial.println(MOSI)...
qubit's user avatar
  • 360
1 vote

ESP32 SPI Mutual Communication

You can see the Slave-Master codes that send messages from Master to Slave using the "Hello From Master" string. Master Code: #include <SPI.h> #ifdef ALTERNATE_PINS #define ...
Enes Orhan's user avatar
1 vote
Accepted

SD Card Mount Failed with Waveshare ESP32 using Arduino IDE

There are at least two problems with your code. First I think you have a typo in the frequency. Default frequency is 4 MHz, but your parameter in begin is 80 MHz, which I doubt will work. You ...
Juraj's user avatar
  • 17.9k
1 vote

Can Arduino UNO/MEGA master assert SPI SS LOW on multiple slaves at once if Full Duplex is unnecessary?

The electronic circuit of an SPI work this way, when a slave device is not been selected (i.e. its CS pin is not asserted), its MISO line will be in tri-state output, i.e. it is in a high impedance ...
hcheung's user avatar
  • 1,362
1 vote

Can Arduino UNO/MEGA master assert SPI SS LOW on multiple slaves at once if Full Duplex is unnecessary?

What is wrong with this idea? Nothing, this is perfectly possible. The main advantage is the avoidance of multiple SS lines, reducing pin count and/or decoding hardware. The SPI main device does not ...
the busybee's user avatar
  • 1,992
1 vote
Accepted

ESP32 TTGO T-Call connect to SX1276

The issue seems to be arising from the pin definitions and the fact that the SIM800 and the SX1276 LoRa chip on the board might be competing for the same pins, causing interference First, let's ...
b1n3t's user avatar
  • 286
1 vote

Changing SPI ports on an Arduino

My second answer ... Your question, in bold, is a good example of an XY Problem. You asked: Is there any way to change the MISO line from 12 to 3, or will I have to resort to using Pin change ...
Nick Gammon's user avatar
  • 38.1k
1 vote
Accepted

Changing SPI ports on an Arduino

I have read that for Hardware interrupts, only pins D2 and D3 can be used to generate interrupts The pin-change interrupts, available on all pins of the Arduino Uno, are almost as good. I say "...
Nick Gammon's user avatar
  • 38.1k
1 vote

FreeRTOS is not solving my problem to run tasks parallelly

No, you don't need an RTOS to do something simple like: if (motionDetected) open_the_door (); You basically have two loops: void loop () { if (motionDetected) ...
Nick Gammon's user avatar
  • 38.1k
1 vote

AD7768-1 library " Arduino "

At present, there is no Arduino library available for this device. As suggested by @chrisl, the easiest way to proceed would be to develop your own driver. However, if you wish to leverage all the ...
realathu's user avatar
1 vote
Accepted

Is it possible to synchronize two SPI busses to send data out in parallel on the same clock signal?

As the Wikipedia page on SPI shows (as introductory material), the SPI main device generates the clock. The SPI sub device waits for the leading edge on its CS (chip select) to start transmitting its ...
the busybee's user avatar
  • 1,992
1 vote

How do you use SPI on an Arduino?

Thank you for the information. Mr. Nick Gammon said However the Leonardo and ProMicro don't expose the SS pin and thus cannot be used as an SPI slave. but I could use ProMicro and Leonardo as SPI ...
asukiaaa's user avatar
  • 141

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