The Association of Model Submariners.

Would you like to react to this message? Create an account in a few clicks or log in to continue.

* THE FORUM FOR ALL THOSE INTERESTED IN BUILDING AND OPERATING MODEL SUBMARINES *



Join the AMS - Registered Forum users can become members of the AMS and it's free ...... To join send an email with your name , address and phone number to amstreasure@googlemail.com


For a guide to past events see the "Shows and Events" section.

....

Sub Weekend, Sheringham, North Norfolk, Sat/Sun 30,31 July 2022

Bournville Dive-In, Birmingham, Sunday 4th Sept 2022

Who is online?

In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests :: 1 Bot

None


Most users ever online was 180 on Tue Nov 05, 2019 6:03 am

Latest topics

» My collection of fibreglass moulds.
Radio ideas -27Mhz - Page 4 EmptyYesterday at 3:35 pm by david f

»  Submarine weekend, Sheringham, Norfolk,30th and 31st of July 2022
Radio ideas -27Mhz - Page 4 EmptyYesterday at 3:22 pm by david f

» WW2 mini sub build
Radio ideas -27Mhz - Page 4 EmptySun May 22, 2022 10:43 pm by SimonH

» Papplewick Pumping Station 2022
Radio ideas -27Mhz - Page 4 EmptySat May 21, 2022 9:39 am by david f

» Akula 1/144 scratch build
Radio ideas -27Mhz - Page 4 EmptyThu May 19, 2022 7:51 am by redboat219

» Darnell U class wanted
Radio ideas -27Mhz - Page 4 EmptySat May 14, 2022 8:19 am by david f

» New modeller looking for U-Class to build
Radio ideas -27Mhz - Page 4 EmptyFri May 13, 2022 3:35 pm by Paul Reilly

» K class plans
Radio ideas -27Mhz - Page 4 EmptyFri May 13, 2022 10:18 am by david f

» Radio ideas -27Mhz
Radio ideas -27Mhz - Page 4 EmptyWed May 11, 2022 12:29 pm by david f

Statistics

Our users have posted a total of 11692 messages in 1923 subjects

We have 952 registered users

The newest registered user is Confused

+3
Cheapsub
david f
geofrancis
7 posters

    Radio ideas -27Mhz

    C-3PO
    C-3PO


    Posts : 46
    Join date : 2018-11-21
    Location : Northamptonshire UK

    Radio ideas -27Mhz - Page 4 Empty Re: Radio ideas -27Mhz

    Post  C-3PO Tue May 10, 2022 4:35 pm

    Hi David,

    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
     }




    Radio ideas -27Mhz - Page 4 Ax5043_001

    Regards
    Jonathan _._

    david f likes this post

    david f
    david f
    AMS Treasurer


    Posts : 2251
    Join date : 2010-11-10
    Age : 71
    Location : Cumbria

    Radio ideas -27Mhz - Page 4 Empty Re: Radio ideas -27Mhz

    Post  david f Wed May 11, 2022 9:19 am

    Fantastic result!
    I will try again with exactly that software.
    Once they start talking it can take off!
    Well done!
    David
    david f
    david f
    AMS Treasurer


    Posts : 2251
    Join date : 2010-11-10
    Age : 71
    Location : Cumbria

    Radio ideas -27Mhz - Page 4 Empty Re: Radio ideas -27Mhz

    Post  david f Wed May 11, 2022 12:29 pm

    Thanks again. I can confirm that the chips give the same result at my end

    Radio ideas -27Mhz - Page 4 2022-015

    I don't actually know what went wrong with my earlier tests. Having the SPI test software means that I can do basic tests on the chips.

    I have just tried them all with the same results above. However one chip gave the result below.

    Radio ideas -27Mhz - Page 4 2022-014

    This one also doesn't give out any RF output. It presumably is a fault with my soldering. I wonder if I was unlucky and this was the one I tried the tests on?

    David

      Current date/time is Sat May 28, 2022 6:31 pm