Friday, August 22, 2014

[Tutorial] Connect a DS1307 RTC to Intel Galileo

Hi,

In this tutorial, you will learn how to access a DS1307 RTC module using the Windows IoT and the Intel Galileo Gen1 platform.

Pre-requisit:


  • Intel Galileo Gen 1 hardware
  • Visual Studio 2013 with Windows IoT plugin
  • A git tool to get access to the source code repository
  • A DS1307 module (from adafruit)

Hardware wiring:

The DS1307 module should be wired as following, please note that the LED is just here to show some system activity and can be removed.
Intel Galileo Gen1 and DS1307 module wiring

Software:

You can pickup the sample source code from bitbucket repository in folder :  Software / RTC_DS1307 .
The RTClib included inside this project is inherited from https://github.com/jcw/rtclib, and minor adaptations has been added in order to make it working in the Windows IoT environment.

Setup function

The setup function is in charge of the initialization of the platform and is a good place for the I2C/TwoWire library initialization.
Wire.begin();
The next step is the initialisation of the RTC to a specific time (August 22nd 2014 at 12:00:59).
// Set a default time
rtc.adjust(DateTime(2014, 8, 22, 12, 00, 59));

loop function

The loop function is making the LED blinking witch have not a big interest here, but it also reading the time and display it in the Visual Studio output window.
// Get time from the RTC
dt = rtc.now();
sprintf_s(outputBuffer, "%d:%02d:%02d\n", dt.hour(), dt.minute(), dt.second());
OutputDebugStringA(outputBuffer);

Conclusion:

The access to the RTC using an existing Arduino sketch is really straightforward on the Windows IoT platform, and the whole development took 30 mins.

Intel Galileo Gen1 with DS1307 module


-Nicolas

Discover Windows IoT with the Intel Galileo

Hi,

Microsoft launched for some privileged contact, the access to their IoT platform and Operating System, based on the Intel Galileo Gen1 hardware. This hardware platform have the exact same pin-out of the famous DYI oriented platform the Arduino.




It's not too late to register for the public access to that program, by checking the WindowsOnDevices website.

If you are one of the lucky user of a Galileo Gen1, and have registered to that program, you can update the provided microSDCard to the latest version of the Microsoft IoT OS, using the following instructions :
http://ms-iot.github.io/content/IBoughtAGalileo.htm

-Nicolas

Wednesday, February 12, 2014

VS2012 and Platform Builder Error in WEC2013 workaround

Hi Folks,

With the new Windows 7 upgrade of the .Net Framework to 4.5.1, the plaform builder does not build properly and throws out the error,
fatal error ! Microsoft.NET Framework v4.x must be installed on your machine

 Until Microsoft comes up with a fix, following 2 steps is the simple workaround, thank you to Claus for pointing out the workaround

1. First open the file sources.ce in the path C:\WINCE800\public\common\oak\misc.
At the top of the file, set the environment variable at the installation path of .Net Framework as

_DOTNET40ROOT=C:\Windows\Microsoft.NET\Framework\v4.0.30319

2. Go to windows Control Panel, then select System. In the System window, select Advanced System Settings. In the System Properties window, select the Advanced tab.

Click on the Environment Variables button, and edit Path variable.

Carefully modify the Variable value as above C:\Windows\Microsoft.NET\Framework\v4.0.30319



Tuesday, February 4, 2014

Satya Nadella is new Microsoft CEO

Hi folks,


Former CEO Steve Ballmer continues to serve in Microsoft’s Board of Directors. Bill Gates retires as Chairman of Microsoft’s Board of Directors and will serve as Technology Advisor whereas John Thompson, CEO of Virtual Instruments, was appointed new Chairman of Microsoft’s Board of Directors.

Congratulations!

Have fun!

Friday, January 31, 2014

Windows Embedded Compact 2013 Wi-Fi drivers now available

Hi folks,
       
Microsoft just announced the availability of Wi-Fi drives for Windows Embedded Compact 2013check out the entire story!


Have fun!

Webinar: Windows Embedded 8 Standard – Embedded Lockdown Features

Hi folks,
       
Watch fellow MVP Nicolas Besson present a webinar featuring the Embedded Lockdown Features of Windows Embedded 8 Standard


Have fun!

See Windows Embedded Compact 2013 boot in 2 seconds!

Hi folks,
       
Adeneo Embedded has created a demo to boot Windows Embedded Compact 2013 in 2 seconds on a Freescale i.MX6Q SabreSDP – check it out!



Have fun!