I am going to do the lottery tonight :) - 5 mins in and I have read AX5043 register values - so the journey starts....
Is it possible that you tested the boards you sent me with some other software?
See image and code below
- Code:
// ***********************************************************************************************
// Name: SPI_readRegs_003
// Date: 10 May 2022
// Brief: Crude SPI test - read write
// Author: Jonathan Askey
// ***********************************************************************************************
/* SPI connections
* Uno/Nano AX5043
* MOSI 11 17
* MISO 12 16
* SCK 13 15
* SS 10 14
* 3.3v 23
* GND 6
*/
#include <SPI.h>
uint8_t slaveSelectPin=10; // CS Chip Select
uint8_t regAddr;
uint8_t regVal;
void setup() {
digitalWrite(slaveSelectPin, HIGH);
pinMode(slaveSelectPin, OUTPUT); // set the SS pin as an output
SPI.begin(); // initialize the SPI library
SPI.beginTransaction(SPISettings(14000000, MSBFIRST, SPI_MODE0));
Serial.begin(9600);
}
void loop() {
digitalWrite(10, LOW); // set the SS pin to LOW
for (uint8_t regAddr = 1; regAddr <= 0x0F; regAddr++)
{
SPI.transfer(regAddr & 0x7F); // send address + r/w bit
regVal = SPI.transfer(0);
Serial.print(regAddr, HEX);
Serial.print(" - ");
Serial.print(regVal,HEX);
Serial.print(" - ");
Serial.println(regVal,BIN);
}
digitalWrite(10, HIGH); // set the SS pin HIGH
}
Regards
Jonathan _._
Fri Apr 26, 2024 1:58 pm by david f
» Modulated electric fields for submarine communication in a "heads up" from Harry!
Sun Apr 21, 2024 6:09 am by geofrancis
» 868/915 Mhz as a viable frequency for submarines.
Wed Apr 10, 2024 5:48 am by tsenecal
» Laser cut Robbe U47 conversion
Tue Apr 09, 2024 3:40 pm by david f
» ExpressLRS - 868/915 Mhz equipment
Tue Apr 02, 2024 3:27 pm by tsenecal
» Information on camouflage patterns for German seahund
Fri Mar 15, 2024 4:36 pm by david f
» WW2 mini sub build
Tue Mar 12, 2024 1:56 pm by geofrancis
» Not the hobby I expected :)
Sun Mar 10, 2024 6:30 pm by cat
» Sheerline gasket material
Mon Feb 19, 2024 9:24 pm by Michaelc