@Morten-Gustafsson Not particular sure if this will helped but there are few alternatives
- You can use bluetooth to communicate between the 2 Omega2 (depending on how far they are)
- You can use cloud messaging service like pubnub
Bought the female and male pin header from Aliexpress that is compatible with Omega 1 in case anyone is interested.
There is also ebay. Look for these items:
10 Pcs 2mm Pitch 16 Pin Female Single Row Straight Pin Header Strip
20Pcs 2mm 2.0mm Pitch 1x16 Pin 16 Pin Single Row Straight Female Header Strip
Has anyone bought the SMD version of the right-angle header pins off from eBay or Aliexpress before ?
Thanks that reallly help
I'm looking at the mechanical drawing of the expansion dock https://github.com/OnionIoT/Onion-Hardware/blob/master/Schematics/Omega-Expansion-Dock.pdf and was wondering if anyone know where can I get more information about the specification of the header pins ?
After reading the datasheet looks like I'm using the wrong decode mode. Here are the steps in case anyone is having the same problem
Following is the wiring
Following is the test bash script
#!/bin/sh #set power ON spi-tool -b 0 -d 1 write 0x0C 0x1 #set scan limit spi-tool -b 0 -d 1 write 0x0B 0x0f #decode mode spi-tool -b 0 -d 1 write 0x09 0x01 #Set each display in use to blank for i in 1 2 3 4 5 6 7 8 9 do spi-tool -b 0 -d 1 write 0x$i 0x0 done for i in 1 2 3 4 5 6 7 8 do spi-tool -b 0 -d 1 write 0x$i 0x11 done sleep 1 for j in 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 0x99 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF do for i in 1 2 3 4 5 6 7 8 do spi-tool -b 0 -d 1 write 0x$i $j done sleep 1 done
Thought I move my previous question in different topic and share the finding here.
So I bought a MAX7219 and was playing around with the spi-tool. Looking at Arduino code and also 7219 datasheet able to do the following
// set scan limit
spi-tool -b 0 -d 1 write 0x0B 0x0f
// set power ON
spi-tool -b 0 -d 1 write 0x0C 0x1
// decode mode
spi-tool -b 0 -d 1 write 0x09 0xFF
// test mode
spi-tool -b 0 -d 1 write 0x0F 0x1
with the test mode (0x0F) able to turn on all the LED and to turn of use 0x0 for 0x0F register.
But the funny thing is when I use the write command to write on the first row like so
spi-tool -b 0 -d 1 write 0x00 0x01
I see 2 LED turned on in Row 0 which is not right. I'm attaching diagram of which LED turn on when using the following command
spi-tool -b 0 -d 1 write 0x00 <value>
Any idea why the LED is not turn on properly ?
Tested in Arduino and all works fine. I tested with Arduino using the sample code from here https://brainy-bits.com/tutorials/how-to-control-max7219-led-matrix/
Seems like the issue is with the mounting of the filesystem. Found the fix via this blog https://drewsymo.com/2016/05/09/fixing-error-writing-fstab-read-only-file-system-2/
How come the wiki page does not include instruction to remount / so we can edit the fstab file ?
Able to mount the USB as /overlay now
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 7560360 38800 7114472 1% /
/dev/root 7680 7680 0 100% /rom
tmpfs 30576 500 30076 2% /tmp
/dev/sda1 7560360 38800 7114472 1% /overlay
overlayfs:/overlay 7560360 38800 7114472 1% /
tmpfs 512 0 512 0% /dev
Trying to extend the /overlay using the following tutorial https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs but I'm getting error when editing the fstab file as follows
root@Omega-09DB:/# block detect > /etc/config/fstab
/bin/ash: can't create /etc/config/fstab: Read-only file system
Any idea ?
Looks like your connection to Community was lost, please wait while we try to reconnect.