MyDin

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche

Introduction

MyDin is a versatile DIN based prototyping/learning solution running MicroPython.

MyDin is designed to create custom automation solutions.

MyDin-3modules.jpg

MyDin combines one controler board together with one backplane board (power interface).

MyDin-Principle.jpg

MyDin is propelled by a software solution (Python classes) designed to help writing your own code with MicroPython.

Thanks to the power of Python, the DIN controler class is configured with a backplane class making the backplane features automagically injected inside the controler.

MyDin Features

  • Controler board based on Raspberry-Pi Pico 2
    • Dual Core Cortex M33 @ 150 MHz
    • 512 KB RAM
    • 4 MB Flash
    • WiFi/Bluetooth
  • Watchdog
  • Realtime Clock
  • AsyncIO implementation (cooperative multitasking)
  • setup() / loop() implementation for user code
  • Monitoring task
    • Inner temperature
  • Custom task (for user code)
  • DS18B20 temperature sensor (automatic detection and activation)
  • User Interface (configuration depends on DIN module size)
  • Expansion Interface
    • Qwiic / StemmaQt (I2C)
    • UEXT (I2C, SPI, UART, OneWire)
    • Support for many sensors thank to MicroPython (see esp8266-upy repository)
  • Interchangeable "Power" BackPlane board
    Many power interface combinations...
    • Relay
    • 24V in/out
    • Analog input/output

MyDin Assortments

Din size Controler Backplane Backplane
3 modules
Dincase-3modules.png
DINCASE-MB3PICO
Dincase-mb3pico.png
  • RTC
  • 4 User buttons
  • Reset button
  • 4 User LEDs
  • Status LED
  • Buzzer
  • Qwiic/StemmaQt (I2C)
  • UEXT conn. (I2C,SPI,UART)
  • OneWire conn.
  • WiFi/Bt
  • micro USB
DINCASE-2R-BP3MOD
Dincase-2r-bp3mod.png
Two relays
(opto-isolated)
coming soon coming soon
4 modules
Dincase-4modules.png
to do to to to do to do to do to do
6 modules
Dincase-6modules.png
to do to to to do to do to do to do

Learning

Async or not

Tlogo-mydin-async-or-not.jpg

Controling your myDin with AsyncIO or with procedural code. Learn the basic coding with MicroPython.

Modules & classes

Tlogo-mydin-modules-and-classes.png

Cross table of boards vs python classes.

Bases classes

Tlogo-mydin-class-diagram.png

Bases classes diagram and description. Understanding the bases will help you to write efficient code.

Advanced coding

Tlogo-mydin-advanced.png

Learn advance feature coding with RUN_APP, setup, task creation, etc

Pico3Mod class

Tlogo-mydin-Pico3Mod.png

The very first MyDin controler board

TwoRelay3Mod C.

Tlogo-mydin-Pico3Mod.png

The very first MyDin backplane board

 

Resources and use-cases

Code Repository

Tlogo-github.jpg

MicroPython code repository with examples, tests and usecase scripts.

Thermostat

Tlogo-thermostat.png

Implement a basic thermostat with a DS18B20 temperature sensor and a relay

 

Modèle:MyDin-TRAILER