Okay, I measured the USB data positive and negative lines.
My voltmeter indicated 3.3 volts coming out of the Arduino (on the usb data positive line) when I powered it (Arduino) up with 5 volts.
So, I connected the usb data lines directly to the Omega without a logic level converter, and it worked like a charm!
Kazooie
@Kazooie
Best posts made by Kazooie
-
RE: 5V Connection to Omega
Latest posts made by Kazooie
-
spidev code for MCP3202 12-Bit A/D converter only reads 252 values
hello
I've connected a MCP3202 dual-channel 12-bit A/D converter to the Omega2+ to check battery voltage.
This is the datasheet of the MCP:
https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/21034F.pdfFor the measurements, I'm using Python 3 with this example code:
https://github.com/OnionIoT/python-spidev/blob/master/examples/xfer3.pyIt works but what I don't understand is that I only get values from 0 to 252. In theory, I should get values up to 4096, right?
Do I have to change the code in some way to get more values?
Thanks!
-
SFTP Connection Fails
Hello,
I'm completely new to Omega.
I want to connect to my Omega2+ Firmware 0.3.4 b257 with Visual Studio Code under Windows 10.
Currently, I'm using WinSCP with Visual Studio Code as my editor, and that works fine.The goal is only to use VSC and not to be dependant on WinSCP.
I can also connect to my Onion via SSH with Putty, but the Visual Studio Code Remote-SSH extension doesn't support connecting to a MIPS machine via SSH.
Therefore, I wanted to try out an SFTP connection.Now I'm a bit confused about why I can't establish an FTP/SFTP connection to my Onion. I installed openssh-sftp-server - 9.6p1-1 on the Omega,
but every time I want to connect from Windows (i tried WinSCP, Visual Studio Code, Atom), I get the error:
"Received exit code 127 while establishing SFTP session."logread only tells me:
authpriv.info dropbear[2632]: Child connection from xxxx::xxxx:xxxx:xxxx:xxxx%apcli0:xxxx authpriv.notice dropbear[2632]: Password auth succeeded for 'root' from xxxx::xxxx:xxxx:xxxx:xxxx%apcli0:xxxx authpriv.info dropbear[2629]: Exit (root): Disconnect received
Under /ur/bin, there is "sftp," but when I write it in the shell, I get this:
Error relocating /usr/bin/sftp: __utimes_time64: symbol not found Error relocating /usr/bin/sftp: __clock_gettime64: symbol not found Error relocating /usr/bin/sftp: reallocarray: symbol not found Error relocating /usr/bin/sftp: __mktime64: symbol not found Error relocating /usr/bin/sftp: __ppoll_time64: symbol not found Error relocating /usr/bin/sftp: __timegm_time64: symbol not found Error relocating /usr/bin/sftp: __time64: symbol not found Error relocating /usr/bin/sftp: __localtime64_r: symbol not found Error relocating /usr/bin/sftp: explicit_bzero: symbol not found Error relocating /usr/bin/sftp: __stat_time64: symbol not found Error relocating /usr/bin/sftp: __fstat_time64: symbol not found Error relocating /usr/bin/sftp: __nanosleep_time64: symbol not found Error relocating /usr/bin/sftp: __gettimeofday_time64: symbol not found Error relocating /usr/bin/sftp: __localtime64: symbol not found Error relocating /usr/bin/sftp: __lstat_time64: symbol not found
Something tells me that the "openssh-sftp-server - 9.6p1-1" may not be compatible with Firmware 0.3.4 b257. Or is it?
So, is there a way to connect to the onion with sftp?
Thanks!
-
RE: 5V Connection to Omega
Okay, I measured the USB data positive and negative lines.
My voltmeter indicated 3.3 volts coming out of the Arduino (on the usb data positive line) when I powered it (Arduino) up with 5 volts.
So, I connected the usb data lines directly to the Omega without a logic level converter, and it worked like a charm! -
RE: 5V Connection to Omega
hi Lazar, thx for the reply.
i now that i shouldnt connect 5 volt to power the omega.
i just want to connect the usb data + / - cables to it.In this thread https://community.onion.io/topic/1087/usb-connection-without-a-dock/44
they say:
"Provided you wish to use the Omega as a USB host, provide a stable 5V of sufficient current and connect the grounds together, that should work."
and
"In essence, yes. USB uses 5V on VBus, but the differential signaling on the data pins is lower voltage (probably around 3.3v actually) and would normally run right into a USB capable chip."I would rather not use a logic level converter, but you mean i will destroy the omega then?
-
5V Connection to Omega
Hello,
I would like to connect my Omega2+ with an Arduino Pro Micro for my project.
Without utilizing the docker, my approach is to directly connect the USB data + / - cables to the Omega.For the Arduino, I require a 5-volt power source.
I intend to split the USB cable coming out from the Arduino, with the data + / - going into the Omega and the power connecting to my power source.My concern is whether this setup might fry the pi.. i mean omega, since it operates at 3.3 volts, while I am powering the Arduino with 5 volts.
Any advice on this matter would be appreciated!