perjantai, 4. lokakuu 2024

Inspecting Uniden UBC-125XLT

ubc125-ser230400.jpg

 

ubc125-wxs.jpg

 

ubc125-tst.jpg

 

tiistai, 17. syyskuu 2024

TIDRADIO TD-H3 firmware

H3_240625.BIN

tidradio-bin.jpg

8051 disassemblerWin10 Windows app produces nice and (maybe) correct looking 8051 table define and asm files

Reference.a51
ref-a51.jpg

Disassembly.a51
disasm-a51.jpg

sunnuntai, 8. syyskuu 2024

Var systems BT

Some fast food restaurants use digital spread spectrum FHSS 2.4 GHz drive-thru systems with Bluetooth connectivity.

hme.jpg

and LED systems with Bluetooth
elk.jpg

 

Management system in shopping centre area (Serial, CAN, BT ...)
https://play.google.com/store/apps/dev?id=6884634465415948252&hl=en
kiho2.jpg

kiho1.jpg
 

Connectable with e.g. serial bluetooth terminal app.
 

sunnuntai, 1. syyskuu 2024

Arduino & RX-4MM3F

Arduino UNO R4
AUREL RX-4MM3F AM OOK receiver

r4connect.jpg

aurel.jpg

 

const int dataPin = 8;
const int agcPin  = 6;
const int rssiPin = A1;

int rssiValue = 0;
PinStatus dataValue;

char buf[8];

void setup() {
  uint32_t startTime = millis();
  while (!Serial && ((millis() - startTime) < 5000));
  Serial.begin(9600);

  analogReadResolution(12);
  pinMode(dataPin, INPUT);
  pinMode(rssiPin, INPUT);
  pinMode(agcPin, OUTPUT);
  digitalWrite(agcPin, LOW);
  delay(250);
}

void loop() {
  dataValue = digitalRead(dataPin);
  rssiValue = analogRead(rssiPin);
  sprintf(buf, "%4d %1d", rssiValue, dataValue);
  Serial.println(buf);
}

 

 

sunnuntai, 18. elokuu 2024

Arduino UNO R4 RA4M1 register access

https://cdn.sparkfun.com/assets/b/1/d/3/6/RA4M1_Datasheet.pdf

copy R7FA4M1AB.h from

...AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.2.0\
variants\MINIMA\includes\ra\fsp\src\bsp\cmsis\Device\RENESAS\Include

to folder where your sketch is located.

#include "R7FA4M1AB.h"
 
void setup() {
  uint32_t startTime = millis();
  while (!Serial && ((millis() - startTime) < 3000));
  Serial.begin(9600);
 
  // Reset status register 0
  uint8_t v8 = R_SYSTEM->RSTSR0;
  Serial.println(v8);
  // Reset status register 1
  uint16_t v16 = R_SYSTEM->RSTSR1;
  Serial.println(v16);
  // Voltage monitor 1 circuit control register 1
  v8 = R_SYSTEM->LVD1CR1;
  Serial.println(v8);
  // System clock division control register
  uint32_t v32 = R_SYSTEM->SCKDIVCR;
  Serial.println(v32);
  // Standby control register
  v16 = R_SYSTEM->SBYCR;
  Serial.println(v16);
  // VBATT status register
  v8 = R_SYSTEM->VBTSR;
  Serial.println(v8);
 
  // Port control register 1
  v32 = R_PORT0->PCNTR1;
  Serial.println(v32);
  v32 = R_PORT0->PODR;
  Serial.println(v32);
  v32 = R_PORT0->PDR;
 
  // RTC 64-Hz counter
  v8 = R_RTC->R64CNT;
  Serial.println(v8);
 
  // Serial port register
  v8 = R_SCI0->SPTR;
  Serial.println(v8);
 
  // SPI control register
  v8 = R_SPI0->SPCR;
  Serial.println(v8);
 
  // Key return flag register
  v8 = R_KINT->KRF;
  Serial.println(v8);
}
 
void loop() {
  delay(1);
}