Tuesday, September 9, 2014

Added Pushbutton

I added a pushbutton to the ArduWin Smartwatch.
It is now possible to switch between Watchfaces (Time/Date).

You see I use the display to debug my code. I dont use the serial monitor. A lot of strange things are happening when i use it. Maybe a conflict with the softserial library for the bluetooth modul.

A second way to debug is the Windows Phone. Visual Express for Windows Phone 8 got a serial monitor too. You can watch the serial traffic and use it as a serial monitor like the serial monitor in Arduino IDE.

A third way will be my new Logic Analyzer (Zeroplus LAB-C 16032). Haven´t connected it to my breadboard yet. But I think the next few days I will do the first tests with this device.

Zeroplus LAB-C 16032

Today I received my Zeroplus LAB-C 16032 Logic Analyzer.
I want to seek bugs in the flow of my code and eliminate timing problems with this little device.

I will post some pictures the next days, with the device connected to my ArduWin Prototyp Board.
Screenshots of the Logic Analyzer´s Software GUI, will be added too.

Friday, September 5, 2014

Things are getting complex

While my code size is getting bigger and bigger I realize it will be hard work to debug with my actual coding style. I do all my readings and communications with a lot of state machines (switch cases). This kind of coding style will work, i guess, but i think even when it´s getting more complex it won´t be easy to read anymore.

So I was looking for an alternative coding style today and read a lot about Scheduler and RTOS (real time operating systems). Those little systems are the clue in ,my opinion, when it´s getting more complex and you have to manage several tasks at the same time like reading inputs, setting outputs, serial communication and  updating a display.

At the end of the day i got those three favourites:
  • NilRTOS-Arduino (preemtive scheduler/multitasking)
  • SCoop (cooperative scheduler/multitasking)
  • ArdOS (cooperative scheduler/multitasking)

When i took a closer look to the code and usage of those three multitasking-systems I realised that NilRTOS is a little bit overdosed for my purpose. It has too many features i won´t use and the art of coding for an arduino beginner like me is another level in this RTOS.
SCoop and ArdOS seem much more user friendly in my opinion and are not to hard to implement i think. I haven´t made a decision yet, which of those two multitasking-systems i will use. Both look very similar.
Maybe you have implementet SCoop or ArdOS in an arduino project and can help me with my decision.

Wednesday, September 3, 2014

My Setup

At the moment i use the following hardware and parts to develope the arduino smartwatch communicating with my windows phone 8.1


Arduino Libraries (non standard):

Debugging Tools:

Tuesday, September 2, 2014

Proof of concept (video)

This is the current state of the project.
With the Arduino i send requests to the Windows Phone (WP) to send me the actual time. It is also possible to request the date.
In the next step i want to add a button to switch between the two watchfaces (time/date).

Welcome to ArduWin

Hi there,

this is my first post on my blog about my arduino projects with windows phone 8.1.

Actually i try to develope my own smartwatch with an arduino mini pro and a 1.3" oled display.

Today there are a lot of smartwatch projects with arduino going on. Especially with Android Mobile Phones. I took the challenge to develope my own smartwatch on Windows Phone 8.1 platform. I dont know any other project yet with WP8.1 except the Pebble. (pls correct my, if there are any other kind of open source projects). So maybe there are some people who are looking for this, like me, who want to have a smartwatch communicating with WP8.1 and Arduino.

The idea of this project was inspired by the Retrowatch project and the Arduino-Bluetooth-WP8.1 Tutorial.

In the next days i will post some pictures/videos and a wiring diagram of my setup and the components and parts. This will present the actual state of my project.

I will also upload the code for Arduino on GITHUB or something similar. I have never shared my software code in the world wide web before, so maybe you got some hints, if there are any other places where i can do this in an easy way.

So, i hope you stay close to this site and follow my steps with this project.