Skip to content

Releases: teddokano/mikan

v1.16.1

02 Sep 01:46

Choose a tag to compare

Level shifter (NTS0304E) demo code updated

v1.16.0

10 Apr 07:29

Choose a tag to compare

Release v1.16.0

Fixes

  • Doctoring format fix for suppressing waring when generating docs/

New supported devices

SPI GPIO-expander

  • PCAL9722

Usability improvements

  • none

v1.15.1

26 Mar 02:03

Choose a tag to compare

  • update to fix the AFE remote demo
    • default target address fix for P3T1755 (0x4C → 0x48) to show the device in the device list
    • change the LCD display connection to primary I²C bus

v1.15.0

18 Feb 20:45

Choose a tag to compare

Release v1.15.0

Fixes

  • No fixes

New supported devices

I2C bus multiplexer/switch

  • PCA9846

I²C bus repeater (buffer)

  • PCA9617A :No class driver available since this device doesn't need software control. Evaluation board demo code only

Level shifter (voltage translator)

  • NTS0304E :No class driver available since this device doesn't need software control. Evaluation board demo code only

Usability improvements

2 additional device clas drivers added

  • 2 device clas drivers added in ard_brd_dev.py to support PCA9846PW-ARD, PCA9617ADP-ARD and NTS0304EUK-ARD evaluation boards. M24C02 is an EEPROM to perform I²C communication on PCA9846PW-ARD, PCA9617ADP-ARD boards. AD5161 is a digital potentiometer to perform I²C and SPI communication on NTS0304EUK-ARD board.

BusInOut class added

  • BusInOut class is added in MikanUtil.py. It's a mbed style GPIO pins control class.

v1.14.1

11 Feb 20:58

Choose a tag to compare

Release v1.14.1

Fixes

PCF85053A class register names are corrected

Usability improvements

remote_demo device default settings are changed for PCA9957 and PCAL6416.

  • PCA9957 MODE2 register bit 3 is set to disabling channel-OFF feature when the output got error. The error condition happens on the ARD board while PWM and IREF are set to intermediate (non 0x00/0xFF) values
  • PCAL6416 Configuration port 0 register is set to 0x00 and Pull-up/pull-down enable register 1 is set to 0xFF. With these settings, user can demo the PCAL6416 feature without doing it manually.
    • "Configuration port 0 = 0x00" makes the LED connected pins are set to output. User can change the LED lighting pattern by writing Output Port 0 register.
    • "Pull-up/pull-down enable register 1 = 0xFF" enables the device internal pull-up registers for pins connected to switches. Check AutoReload checkbox on the PCAL6416 server page and push buttons on ARD board. The button state will appear on the page.

Release v1.14.0

Release 1.14.0 have several usability improvements new device supports.

1. Fixes / Changes

1.1 Fix

  • P3T1755 read value was in 11 bits. Corrected to read 12 bits.

1.2 Changes

  • Class name changed from PCF85063 to PCF85063A ("PCF85063" followed by "A"). This is to avoid confusion with PCF85063TP which is newly supported device from this release.
  • example/ folder contents are sorted out. Some sample code are moved between example/general/ and example/ARD_boards/ folders.
    • example/ARD_boards/ folder contains sample code with can run on Arduino shield board type evaluation boards instantly.
    • example/general/ folder is for sample code which can be applied to some devices with small modifications.

2. New supported devices

2.1 Temp sensors

  • P3T1035 and P3T2030

2.2 RTC

  • PCF85063TP, PCF85263A and PCF85053A.

3. Usability improvements

3.1 Improving MicroPython revision compatibility.

For i.MX RT MCUs, machine.Timer usage was changed on MicroPython from its release 1.20.
In MicroPython release 1.19 or earlier, the timer ID need to be given 0 or positive integer for specifying hardware. In MicroPython release 1.20 or later, it's been chanded. The timer ID can be always -1.
The release of mikan 1.11.x and earlier was compatible to MicroPython 1.19 and mikan 1.12.x and 1.13.x was compatible to MicroPython 1.20.

From this (1.14.0) release, mikan can run on any MocroPython release on i.MX RT boards.

mikan release MicroPython release Compatibility
1.11.x or earlier 1.19.x or earlier yes
1.11.x or earlier 1.20.x or later no
1.12.x and 1.13.x 1.19.x or earlier no
1.12.x and 1.13.x 1.20.x or later yes
1.14.x or later 1.19.x or earlier yes
1.11.x or later 1.20.x or later yes

This feature has been made by adding new module nxp_periph/MikanUtil.py. A class method of MikanUtil.get_timer_id( n ) return required number after checking the MCU and MicroPython release.
It can be seen in code which uses machine.Timer.

from	machine		import Timer
from	nxp_periph	import MikanUtil

tim0 = Timer(  0 )   #	in mikan 1.11.x or earlier
tim0 = Timer( -1 )   #	in mikan 1.12.x and 1.13.x
tim0 = Timer( MikanUtil.get_timer_id( 0 ) )   #	in mikan 1.14.x or later

3.2 New feature in remote_demo

3.2.1 User message in shell pane

Notice has been added on remote_demo start message on the shell. It tells the I2C errors can be ignored.

3.2.2 Server response time display

Server response time is shown at bottom of the device demo server.
Information like following can be found under I²C scan result table.

http sever response time: (samples = 10)
min = 3 ms
max = 9 ms
median = 4 ms
average = 4.300 ms

3.2.3 Switching demo to AFE

AFE demo configuration is integrated in remote_demo/demo_lib/DEMO.py
AFE demo can be run with remote_demo/demo_lib/DEMO.py without changing its contents or replacing the file with pre-configured settings.
The AFE demo is in demo() function and it can be started with an optional argument of congig = "AFE". The parameter can be any string including "AFE".

v1.14.0

10 Feb 02:34

Choose a tag to compare

Release 1.14.0 have several usability improvements new device supports.

1. Fixes / Changes

1.1 Fix

  • P3T1755 read value was in 11 bits. Corrected to read 12 bits.

1.2 Changes

  • Class name changed from PCF85063 to PCF85063A ("PCF85063" followed by "A"). This is to avoid confusion with PCF85063TP which is newly supported device from this release.
  • example/ folder contents are sorted out. Some sample code are moved between example/general/ and example/ARD_boards/ folders.
    • example/ARD_boards/ folder contains sample code with can run on Arduino shield board type evaluation boards instantly.
    • example/general/ folder is for sample code which can be applied to some devices with small modifications.

2. New supported devices

2.1 Temp sensors

  • P3T1035 and P3T2030

2.2 RTC

  • PCF85063TP, PCF85263A and PCF85053A.

3. Usability improvements

3.1 Improving MicroPython revision compatibility.

For i.MX RT MCUs, machine.Timer usage was changed on MicroPython from its release 1.20.
In MicroPython release 1.19 or earlier, the timer ID need to be given 0 or positive integer for specifying hardware. In MicroPython release 1.20 or later, it's been chanded. The timer ID can be always -1.
The release of mikan 1.11.x and earlier was compatible to MicroPython 1.19 and mikan 1.12.x and 1.13.x was compatible to MicroPython 1.20.

From this (1.14.0) release, mikan can run on any MocroPython release on i.MX RT boards.

mikan release MicroPython release Compatibility
1.11.x or earlier 1.19.x or earlier yes
1.11.x or earlier 1.20.x or later no
1.12.x and 1.13.x 1.19.x or earlier no
1.12.x and 1.13.x 1.20.x or later yes
1.14.x or later 1.19.x or earlier yes
1.11.x or later 1.20.x or later yes

This feature has been made by adding new module nxp_periph/MikanUtil.py. A class method of MikanUtil.get_timer_id( n ) return required number after checking the MCU and MicroPython release.
It can be seen in code which uses machine.Timer.

from	machine		import Timer
from	nxp_periph	import MikanUtil

tim0 = Timer(  0 )   #	in mikan 1.11.x or earlier
tim0 = Timer( -1 )   #	in mikan 1.12.x and 1.13.x
tim0 = Timer( MikanUtil.get_timer_id( 0 ) )   #	in mikan 1.14.x or later

3.2 New feature in remote_demo

3.2.1 User message in shell pane

Notice has been added on remote_demo start message on the shell. It tells the I2C errors can be ignored.

3.2.2 Server response time display

Server response time is shown at bottom of the device demo server.
Information like following can be found under I²C scan result table.

http sever response time: (samples = 10)
min = 3 ms
max = 9 ms
median = 4 ms
average = 4.300 ms

3.2.3 Switching demo to AFE

AFE demo configuration is integrated in remote_demo/demo_lib/DEMO.py
AFE demo can be run with remote_demo/demo_lib/DEMO.py without changing its contents or replacing the file with pre-configured settings.
The AFE demo is in demo() function and it can be started with an optional argument of congig = "AFE". The parameter can be any string including "AFE".

v1.13.0

02 Jan 08:15

Choose a tag to compare

  • "afe" branch is merged: NAFE13388 class driver (beta version) included and remote_demo for AFE is available in this "main" branch
  • fixed: document for GPIO could not been included correctly. Now GPIO and AFE can be fond in here
  • Compatibility is confirmed with MicroPython v1.22.0 (2023-12-27)

v1.12.3

25 Dec 08:37

Choose a tag to compare

remote_demo network performance fixed

v1.12.2

25 Dec 01:39

Choose a tag to compare

"package.json" updated to fix mip install problem

v1.12.0

20 Dec 20:11

Choose a tag to compare

MicroPython v1.21.0 compatible version for IMXRT series MCUs