Page 1 of 1

64 RF output with the DJY-40 module [Kicad]

Posted: Sat Feb 15, 2025 6:22 am
by XavSnap
Hi,

I'm working around the DJY-40 module.
It allow to send or receive serials datas or a 8 bits GPIO bus, with a distance of 120 meters.

Data sheet: https://www.rcscomponents.kiev.ua/datas ... asheet.pdf

The config of the chip is poorly detailed and let me in a trouble.

This new original project is a first try to drive eighth miniature locomotive located in a narrow case.
It will be able to drive the speed, the way (forward and reverse), the horn and lights.
Rail will be powered with 12v AC, for all trains, and the module will drive each locomotives by RF signals throw the modules IDs.

I give you the raw project as is.

But, i can't tell you if this project is realistic, without more informations on the DJY-40 module.

I prepared the schematic for the ZX81 card. (POKE 10 to 17, 8x8 buffered outputs)
And the locomotive schematic, but need help around the PWL (NE555) pulse drived by a simple DAC circuit.

Have a look to my primary work, and let me know.

ZX81 card schematic:
MaxIO_JDY40_ZX81.pdf
(715.56 KiB) Downloaded 61 times
Locomotive driver:
MaxIO_JDY40_train.jpg
MaxIO_JDY40_train.pdf
(244.01 KiB) Downloaded 60 times
Have fun.

Re: 64 RF output with the DJY-40 module [Kicad]

Posted: Sun Feb 16, 2025 9:43 am
by XavSnap
Hi,
Here the ZX81 card.
Don't suit to the SPECTRUM connector.
MaxIO_JDY40_ZX81.jpg
MaxIO_JDY40_ZX81_2.jpg


Schematic:
MaxIO_JDY40_ZX81.pdf
(715.3 KiB) Downloaded 50 times
NOTE: This release had to be update with a /ROMCS high level while sending data.
D0-D7 are locked and target to the BASIC ROM, not on the card.



Have fun.

Re: 64 RF output with the DJY-40 module [Kicad]

Posted: Sun Feb 16, 2025 11:12 pm
by XavSnap
Update 0.1:
D1 added to drive the /ROMCS

Schematics:
MaxIO_JDY40_ZX81.pdf
(719.36 KiB) Downloaded 51 times

Kicad project & Gerber:
JDY40_ZX81.zip
(977.02 KiB) Downloaded 42 times

Re: 64 RF output with the DJY-40 module [Kicad]

Posted: Thu Feb 20, 2025 12:19 am
by XavSnap
Hi,
MaxIO_JDY40_train.jpg


This module is a locomotive driver based on a DJY-40 mini-circuit.
It alloy to send a serial value to another mini-circuit on a 8 bits IO BUS.
Each mini-circuit had to be set to a name ID 1 to 8 (256 available) and be set to the BUS mode.

We use 3 bits (B0-B2) for the speed. 0 to 7 voltage rang (step 2v),where 0 is STOP and 7 FULL Speed.
1 bit (B3) to set the forward or reverse mode.
1 bit (B4) to the horn (buzzer).
3 bits (B5-B7) are free for other stuff.(magnetic coupling, smoke generator, waggons lights...)

The front and rear lights are coupled to the B4 bit, and can be connected on a pinhead connector.

The remote can be use to test or move the train without the ZX81 card.
You had to push SPEED1+SPEED2+SPEED3 to reach the full speed, SPEED3 set the rang 4/7 (VCC/2)

You can use a 12v-9v AC on the tracks, the driver have a DC rectifier.

25x175mm PCB, can be place on his edge if no room in the locomotive.


The voltage divisor can be made with 1/4 W resistors, but 1/2 W will avoid to create heat inside the train.

The circuit seem to be reliable, but had to be test (poor DJY-40 datasheet).

Have fun.



Wiring diagrams:
MaxIO_JDY40_train.pdf
(249.05 KiB) Downloaded 49 times


JDY40_train_remote_2.jpg
JDY40_train_remote_3.jpg

Re: 64 RF output with the DJY-40 module [Kicad]

Posted: Thu Feb 20, 2025 6:28 pm
by XavSnap
Update 1.2:
-U4 (L7805 regulator) footprint was corrupt. :oops:
MaxIO_JDY40_train.jpg


Kicad 9.0 project:
Full Kicad project (DC motor driver & remote)
MaxIO_JDY40_train.zip
(856.55 KiB) Downloaded 42 times

Notes:
To update to Kicad 9, just update the binarys, not the libs.
Move your old one in the "/9/share/kicad" directory.
Take care to preserve your updated librarys in "symbols" and move all new files in "3Dsharpes" an "footprints".
Or install the full 9 release, and overwrite all new files, with older one.
Hope the library's problem will be solve in next release, especialy the "Symbols" path, using single-file features.
The library manager able to help, but never worked properly on my computer !


I experimented a bugg in the 3D viewer, with a "ALL BLACK" preset ! (Night mode!)
Just change colors to "DEFAULT COLOR" by clicking the color square.
Change all colors to default, and save it to "Default PCB".