@Angus-Ryan Did you solve your problem? I had something similar with the Dock 2 and a 3.5" TFT display. The problem was a conflict between I2C communication between the omega and the Dock's AVR chip with uses pins A4 and A5. But the pin corresponding to A4 resets the TFT display, So I cut this pin on the display and wired it to the Tx pin on the Dock 2, to do a hard reset when needed, but not during I2C transfers. The other added wire in the picture enables GPIO11 to receive data from the Arduino, but that is unrelated to the flakey operation I had before cutting the reset pin on the display.
Hope that's helpful.![0_1609001112703_20201222_175626b.jpg](Uploading 76%)
@LightSwitch The ADC Expansion package is for Python only, it won't work for micropython.
To interact with the ADC Expansion with micropython, I recommend calling the adc-exp command-line tool from micropython.
See the OS function in micropython-lib: https://github.com/micropython/micropython-lib/tree/eae01bd4e4cd1b22d9ccfedbd6bf9d879f64d9bd/os
Ok I finally got around to installing the micropython-lib on one of my Dash modules. I went to the Git hub site and used the example code there for the umqtt.simple client, to my disappointment it does not return a clean string for the message so for my projects where I convert the string into Json, this simply won't work as is. After searching I found that I had to create a routine to convert the binary text to a proper string I posted it below. I really don't understand why people don't go the extra distance to make things clean when they write code when did "good enough" become the norm?
@crispyoz said in Project "liburtc" the library to operate external RTC devices:
Not sure where I would buy old Russian diodes here on Australia though
You can try 1N34A that's Germanium Diode too and say us result.
@Ian-Smith You just import the STL into TinkerCad and you're all set.
In TinkerCad create a new design then look at the top right for "import" then you can import the STL into that design.
I just made the TinkerCad designs public, there are two parts, "Top" and "Bottom" in separate design files. search for "Dash Case" or maybe easier search for me by username crispyoz
@Radek said in How can I pass one GPIO pin to an other?:
Yes, this is what I actually tried to ask: how can i programmatically pass GND to those two pins.
I don't think connecting pins from Omega would do the trick as I need to pass GND.
For the moment the only idea I have is to buy relays but I would rather try to avoid it of possible
Instead of relays, try making a switch with a transistor. That way, you can use the Omega's GPIO as the control signal (set the logic level), but don't have to depend on the Omega to provide the current.
We used this method for the Omega-controlled MCU reset on the Arduino Dock 2:
@Modest-Polykarpovich great project!
@Modest-Polykarpovich said in [Manual] Connection TFT display ILI9341 (custom Dash):
Or download and force upgrade firmware (filename omega2dash-vX.X.X-bXXX.bin) via util sysupgrade from repo.onioniot.com. DIDN'T TESTED!
This should work assuming your TFT <-> Omega connections are the same as the Dash
one of onion omega developer(Lazar Demin) said below reasons
Since SPI flash cannot be easily connected and disconnected like USB storage or SD cards, the Linux kernel does not support automatic detection of SPI flash devices or partitions on the devices.
Instead, the SPI flash must be defined in the Kernel Device Tree.
See how the Omega's internal flash device and partitions are defined in the device tree specification (DTS) here: https://github.com/OnionIoT/source/blob/openwrt-18.06/target/linux/ramips/dts/OMEGA2.dtsi#L103
To support an external flash, you'll need to:
Add the SPI flash & it's partitions to the DTS
build a new firmware with the modified DTS.
I have verified it clearly. but I am worrying about onion guys are saying(Onion Corporation is not responsible for any damage to your device caused by using custom firmware or packages not built and released by Onion Corporation).
can you please help me sir how to add SPI code in custom firmware for detection of external SPI bus device.