Sensor Kid emulation

Pagina 3/3
1 | 2 |

Van gdx

Enlighted (4634)

afbeelding van gdx

09-05-2021, 03:46

Description I have is:

Port #00 (Write)

  • Bit0 = CLK
  • Bit1 = RS
  • Bit2-3 = AI
  • Bit5 = unused
  • Bit6 = OUT1
  • Bit7 = OUT2

CLK is to specify the reading of the next bit of the selected analog input
RS (Range Selection) is the signal to the RS pin of the MB4052 chip
AI is the number of the analog input to select (0 = Light sensor, 1 = Sound sensor, 2 = Thermometer, 3 = Not used)
CS (Chip Select) is the signal to CS pin of the MB4052 chip
OUT0 / OUT1 set the port 0 / 1 of the output connector to 0V or 5V

Port #00 (read)

  • The bit 0 gives the state of the current bit of the selected analog input

Port #01 (read)

  • Bit 0 and 1 indicate the state of port 0 and port 1 of the output connector

Van Manuel

Ascended (18088)

afbeelding van Manuel

09-05-2021, 09:45

Van st1mpy

Paladin (805)

afbeelding van st1mpy

12-05-2021, 00:26

I was converting existing BASIC games to work with sensor inputs (kind of like a wii game). Got caught out with a few things in basic which were giving me errors , which initially I thought there was something wrong with my sensor kid hardware emulation. One is defint a-z, call hikari(x) takes one letter variable and if the variable is included in defint, it gave massive numbers, so I had to exclude it, defint a-w. Another was I found multiple nested if statements on one line number of basic strange , and when I inserted a new if, the program wasn't running as intended, so I had to split them in different lines.
Anyway, I got 2 games working with sensor kid, it's quite fun, will do a video soon.

Van st1mpy

Paladin (805)

afbeelding van st1mpy

13-05-2021, 01:28

A video of 8192 floor tower game modified to be controlled by light using Sensor Kid (Arduino Mega) on MSX.

A video of a BASIC missile game modified to be controlled with potentiometer and light using Sensor Kid.

A video of Sensor Kid ROM with the Arduino and sensors.

Pagina 3/3
1 | 2 |