July 15, 2025, 12:40:35 AM

Recent posts

#41
ESP32 / ESP32-PoE-ISO epaper and Ether...
Last post by djkroko - June 29, 2025, 02:01:43 PM
Hello,

i am working on a little Project using the ESP32-PoE-ISO and a Waveshare 7.5" Epaper with the e-Paper Driver HAT.

I want to integrate this into Home Assistant over ESPHome.

The Setup is working while using WiFi but as soon as I switch to Ethernet it stops working.
In the Serial Monitor i get following Error:
"
[12:55:12]E (47362) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[12:55:12]E (47362) task_wdt:  - loopTask (CPU 1)
[12:55:12]E (47362) task_wdt: Tasks currently running:
[12:55:12]E (47362) task_wdt: CPU 0: IDLE
[12:55:12]E (47362) task_wdt: CPU 1: loopTask
[12:55:12]E (47362) task_wdt: Aborting.
[12:55:12]
[12:55:12]abort() was called at PC 0x400ec1b9 on core 0
[12:55:12]
[12:55:12]
[12:55:12]Backtrace:0x400836a1:0x3ffbe83c |<-CORRUPTED
[12:55:12]
[12:55:12]
[12:55:12]
[12:55:12]
[12:55:12]ELF file SHA256: 0000000000000000
[12:55:12]
[12:55:12]Rebooting...
"


Currently I use the following PINs:
spi:
  clk_pin: GPIO14
  mosi_pin: GPIO4

Display:   
cs_pin: GPIO13
    dc_pin: GPIO15
    busy_pin: GPIO32
    reset_pin: GPIO33

When Ethernet is enabled:
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
  power_pin: GPIO12


Are there any PINs I cannot use when I want to use Ethernet?
Currently it runs without PoE but in the Future it should run with PoE.

I hope someone can help me this.

Thank you
djkroko
#42
Neo6502 / Neo6502 / Serial Access
Last post by mscha - June 28, 2025, 11:48:29 AM
Has anybody successfully established a serial connection from Windows to the Neo?
I tried it with the MOD-USB-RS232 card - no success.
#43
New Product Ideas / ESP32-SBC-FabGL ... instead es...
Last post by therese80 - June 27, 2025, 11:37:02 AM
Hi to all kind geeks .. an others ,

I volunteer to teach programming to 10-12 year old kids from disadvantaged families who cannot afford a computer
I bought ESP32-SBC-FabGL from TinyTronics, eagerly awaiting delivery.
In the meantime, I have made wiht protoboard a VGA/PS2 picomite that looks very similar to ESP32-SBC-FabGL.
I'm wondering why not replace the ESP32 with an rp23050 while respecting the connections for VGA/PS2 picomite running on V6.00.02. .
The advantage of ESP32-SBC-FabGL is that it can directly manage an LCD screen.
For these kids, making their own laptop would be fantastic.

Why Picomite ,i want a BTB(Boot To Basic) with embedded Editor .
It's the first step for that kids and also simply i use it .. it's easy to use and the community is very dynamic .

Second step is Python on the same board ..

You can say why not use PCEmulator ? I used real XT pc when i was young ..wait to get my ESP32-SBC-FabGL .


Thanks to all, and see you soon.

@+
TRS80 ... ;D
#44
A20 / Re: LIME2 sun4i-codec not work...
Last post by LubOlimex - June 26, 2025, 08:54:14 AM
Thank you for the update! Glad it worked in the end.
#45
A20 / Re: OLinuXimo A20 LIME2 : use ...
Last post by LubOlimex - June 26, 2025, 08:22:19 AM
Unfortunately, we no longer maintain the customized Python packages like pyA20Lime2. These should be considered abandon-ware. Probably parts or logic in them can be used as basis or inspiration for own work. These packages were made for the Armbian releases, as soon as we switched to mainline Olimage images, we dropped support. The packages are not supposed to work with Olimage out-of-the-box and had never been tested under Olimage. There are few paths forward:

- Adapt the packages for your use, sources can be found at our GitHub;
- Use sysfs to accomplish the same;
- Find similar Python package for the Allwinner A20 chip.

For C code and more refer to "8.6. How to toggle a GPIO pin via sysfs" on page 26 of this document:

https://github.com/OLIMEX/OLINUXINO/blob/master/DOCUMENTS/OLIMAGE/Olimage-guide.pdf
#46
A20 / Re: OLinuXimo A20 LIME2 : use ...
Last post by abriotde - June 25, 2025, 05:55:23 PM
I have test return code from init() in C code, and it's the open of /dev/mem the problem... Not trivial.

https://askubuntu.com/questions/1467092/dev-mem-and-even-dev-port-cant-open-even-as-root
#47
A20 / Re: OLinuXimo A20 LIME2 : use ...
Last post by abriotde - June 25, 2025, 05:40:35 PM
Yes, I bought the LIME2-SHIELD, and know I manage to blink a LED... with Shell with this code:

PIN_NUM=53
gpio_init () {
echo "PIN_NUM=${PIN_NUM}"
# echo $PIN_NUM > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio${PIN_NUM}/direction
}
gpio_set () {
val=$1
echo "GPIO set $val"
echo $val > /sys/class/gpio/gpio${PIN_NUM}/value
}
gpio_get () {
echo -n "GPIO = "
cat /sys/class/gpio/gpio${PIN_NUM}/value
}
gpio_init
gpio_get
while true; do
gpio_set 1
gpio_get
sleep 1
gpio_set 0
gpio_get
sleep 1
done

But with C, this code seam to do nothing:

int main() {
sunxi_gpio_init();
unsigned int pin = SUNXI_GPB(21);
sunxi_gpio_set_cfgpin(pin, SUNXI_GPIO_OUTPUT); // Set PB21 as outputtput
sunxi_gpio_pullup(pin, SUNXI_PULL_DOWN); // Enable pull-up on PB21
sunxi_gpio_pullup(pin, SUNXI_PULL_UP); // Enable pull-up on PB21
int i = 0;
while( 1 ) {
printf("Write 1;\n");
sunxi_gpio_output(pin, 1); // Set PB21 high
sleep(1);
printf("Write 0;\n");
sunxi_gpio_output(pin, 0); // Set PB21 low
sleep(1);
}
return 0;
}

I used the lime2-shield doc to convert PIN 53 to B21 but maybe is it wrong?

But in python, it's worst: It's crash with "PermissionError: [Errno 1] Operation not permitted" even in root while overwise, I run in olimex user. And Python init() code, should call sunxi_gpio_init(), the one witch not crash on C...

from pyA20Lime2.gpio import gpio
from pyA20Lime2.gpio import port
from pyA20Lime2.gpio import connector

gpio.init()
#48
A20 / Re: LIME2 sun4i-codec not work...
Last post by zeallin - June 25, 2025, 10:25:44 AM
Hello my friend,

Since I think the system should be alright, I change the wire from HPOUTL + HPCOM to HPOUTR + HPCOM, and the mono audio works!

Thank you very very much for your support, you are the best!
#49
A20 / Re: LIME2 sun4i-codec not work...
Last post by LubOlimex - June 24, 2025, 01:40:08 PM
No idea. My hardware setup is different - I used regular stereo output and I didn't change anything in alsa mixer. You only have one channel connected and mono source, I think you need to change the input the output to mono and either left or right channel as input somewhere. Not sure if unmutting all is the correct approach.

Maybe also try with the audio file I linked above "file_example_WAV_5MG.wav".
#50
A20 / Re: LIME2 sun4i-codec not work...
Last post by zeallin - June 24, 2025, 01:13:36 PM
Hello my friend,

Your suggestion is awesome! I followed the steps you provided and now the board is recognized properly!

1. The sun4icodec is turned on automatically!

**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

2. The aplay seems works properly (it finish in time) but no audio output (no sound from the speaker).

olimex@a20-olinuxino:~/tool-audio$ aplay -Dhw:0,0 launch.wav
Playing WAVE 'launch.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
olimex@a20-olinuxino:~/tool-audio$

3. I checked the alsamixer and unmute all playback items

https://ibb.co/sdWJQnWK

Just wonder what is missing...

Thank you very much my friend!