Connect to I2C

A place to talk about all the Operating Systems, Software & Hardware
Forum rules

- Posts are to be made in the relevant forum. Users are asked to read the forum descriptions before posting.

- Members should post in a way which is consistent with "normal writing". That is users should not post excessive numbers of emoticons, large, small or coloured text, etc. Similarly users should not SHOUT or use excessive punctuation (e.g. ! and ?) in topic titles or posts.

- Members should use an appropriate, descriptive subject when posting a new topic. Examples of bad subjects include; "Help me!", "I'm stuck!", "I've got an error!", etc. Examples of good subjects include; "Getting an TABLE FULL error upon login", "Cannot restore a backup".

- Members are asked to post in English only so that posts can be well received and properly monitored.

- Spam is not tolerated here under any circumstance. This includes offering hosting services (charged and free), installation services, solicitation etc. Recruiting members for your own projects (moderators, designers, professional MOD work, etc.) is not permitted and is also considered spam. Users posting spam will be warned and their post removed.

- Members should post in a way that is respectful of other users. Flaming or abusing users in any way will not be tolerated and will lead to a warning. Vulgar language and inappropriate material is not allowed and will be removed. We try to maintain a family friendly atmosphere whenever it is possible within the main subject matter of this community. Please keep this in mind when participating.

- Each user is allowed to create one account. If you would like to change your username, please contact us and, most likely, we can do it for you while you can keep all of your profile data, posts, and other content.

- If a user violates our guidelines and shows a disregard for them, our staff and our community, they run the risk of losing their account. We reserve the right to deactivate any account and to edit or remove any content without warning. These guidelines are subject to change at any time without notice.

Thank you for visiting LattePanda.com!
User avatar
cmoetzing
Posts: 17
Joined: Sat May 28, 2016 3:30 pm

Fri Jun 17, 2016 11:31 pm

I want to connect some sensor via I2C. As I understand the I2C connectors are connected to the CPU (area U1). I guess this means there is no need to run things over RemoveDevice() in C#. I found https://github.com/Microsoft/Windows-un ... ta.xaml.cs as example. I guess I can access them directly through this lib, but what are the addresse? Can find anything on that.

Thx in advance

User avatar
cmoetzing
Posts: 17
Joined: Sat May 28, 2016 3:30 pm

Sat Jun 18, 2016 10:44 am

I gues the above link to Windows IoT Core is a wrong hint. The IoT Core Image does not exist for LP.

Please Lattapanda team explain this part:
Windows Remote Arduino enables the following functionality out of the box:
1. GPIO – Analog and Digital I/O * digitalWrite - Digital Write * digitalRead - Digital Read * analogWrite - Analog Write * analogRead - Analog Read * pinMode - Set the mode for any pins. * Eventing - receive events when values change / are reported 2. I2C/TwoWire * Send/Receive data to and from other devices over I2C 3. Custom protocols via Firmata SysEx command
How can we write to I2C via RemoteWiring when I2C is placed in area U1 which is not connected to ATmega32u4? Can you please provide some example?

User avatar
Lutz
Posts: 214
Joined: Mon Apr 18, 2016 4:30 am
Location: Germany, NRW

Sat Jun 18, 2016 11:20 am

I think, there are 4 different I2C-Interfaces :
I2C-0, I2C-2, I2C-DDIO on 10-pin-header connected to the CPU
I2C on 24-pin-header connected to Arduino-D2 and -D3 (Meant by Lattepanda team in the quote ?)
( http://www.lattepanda.com/docs/#Connect ... ral_device )

Additional question : What voltage level is used on the CPU-I2Cs ?
Maybe 1,8V and we need level shifter IC ?
Or the CPU-I2C-Pins are 5V tolerant (I don't think so) ?
Last edited by Lutz on Sat Jun 18, 2016 3:05 pm, edited 1 time in total.

User avatar
cmoetzing
Posts: 17
Joined: Sat May 28, 2016 3:30 pm

Sat Jun 18, 2016 2:35 pm

I still would be intereste in some info to connect to the I2C directly. I guess the way over RemoteWiring won't work either right now thanks to this littel bug viewtopic.php?f=6&t=209.

Somehow disappointing experience working whith this little device...

User avatar
Lutz
Posts: 214
Joined: Mon Apr 18, 2016 4:30 am
Location: Germany, NRW

Sun Jun 26, 2016 6:10 am

cmoetzing wrote: (...)
How can we write to I2C via RemoteWiring when I2C is placed in area U1 which is not connected to ATmega32u4? Can you please provide some example?
@LattePanda team : we still need an answer to this...
Maybe not a complete example, but a link to a page with explanations ;)

User avatar
LattePanda
Site Admin
Posts: 2628
Joined: Wed Jan 20, 2016 9:09 am

Mon Jun 27, 2016 8:31 am

sorry for delayed response, guys. we will get some documentation up in due course.
Enjoy Tinkering with LattePanda ! :lol:

User avatar
m-obi
Posts: 4
Joined: Wed Jun 29, 2016 6:16 pm

Thu Jul 07, 2016 6:21 pm

We are all still waiting. Any updates?

User avatar
Pe4eHbKa
Posts: 13
Joined: Thu Jun 30, 2016 7:30 pm

Thu Jul 07, 2016 6:48 pm

There is some example of using I2C without arduino (Atom Z8300 has it`s own I2C interface)
https://developer.microsoft.com/en-us/w ... elerometer

User avatar
m-obi
Posts: 4
Joined: Wed Jun 29, 2016 6:16 pm

Thu Jul 07, 2016 7:14 pm

But we have no Win 10 IoT on the LP. It's just Win 10.

User avatar
srcox
Posts: 13
Joined: Wed Jun 08, 2016 8:03 pm

Fri Jul 08, 2016 5:39 pm

I believe the problem is USB/Serial driver support for the Arduino Leonardo board under the .NET core framework i.e. the IOT sample quoted should work on Windows 10 if LattePanda/Microsoft fixed the USB support. Until then, we are stuck with Arduino scripts and wpf/winforms serial communications using System.IO.Ports i.e. the old System.Core

See the UWP firmata thread for more info.

Post Reply