Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Vojin

Member Since 24 Sep 2010
Offline Last Active Oct 21 2013 12:03 AM
-----

Topics I've Started

Audio Trigger

09 November 2010 - 02:48 AM

Trying to build audio trigger using LM386 Audio Amplifier...

I have this so far... and it's not working

Posted Image

What am I doing wrong?

HD44780 1602 16x2 LCD

21 October 2010 - 10:12 PM

Got it yesterday from eBay for $3.10CAN.
Spend an hour to wire it and it works like a charm :)

Posted Image

Now, I'm just waiting for shift registers to start bit more advanced projects

Camera Shutter Release Timer

20 October 2010 - 10:07 PM

One more Extremely-Simple-Project :)

Design:
Posted Image

On the breadboard:
Posted Image

How it works:
http://www.youtube.com/watch?v=YG4yLwIarb4

Code:
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

namespace ShutterRelease
{
    public class Program
    {

        static Boolean status = false;

        public static void Main()
        {
            // write your code here

            OutputPort focus = new OutputPort(Pins.GPIO_PIN_D8, false);
            OutputPort shutter = new OutputPort(Pins.GPIO_PIN_D10, false);

            InterruptPort button = new InterruptPort(Pins.ONBOARD_SW1, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeHigh);
            button.OnInterrupt += new NativeEventHandler(button_OnInterrupt);

            while (true)
            {
                if (status)
                {
                    focus.Write(true);
                    shutter.Write(true);
                    Thread.Sleep(10);
                    focus.Write(false);
                    shutter.Write(false);
                    Thread.Sleep(5000);
                }
            }

        }

        static void button_OnInterrupt(uint data1, uint data2, DateTime time)
        {
            status = !status;
        }

    }
}


Netduino & LIRC

20 October 2010 - 06:00 AM

I'm trying to build IR remote for my Sony DSLR A350.

Simple setup:
Posted Image

I have a LIRC file for IR Remote
begin remote

  name  Minolta_RC3
  bits            8
  flags SPACE_ENC
  eps            25
  aeps          100

  header       3872  1708
  one           527   436
  zero          527  1331
  ptrail        527
  pre_data_bits   24
  pre_data       0xD3AC7D
  gap          9052
  toggle_bit      0


      begin codes
          one_sec                  0x000000000000007F
          two_sec                  0x00000000000000FF
      end codes

end remote

The problem is that LIRC values are in microseconds and I cannot turn irLED on or off for less them 1 millisecond.
For example, bit "1" is LED on for 527 microseconds and then LED off for 436 microseconds:
irLED.Write(true);
Thread.Sleep(0.527);
irLED.Write(false);
Thread.Sleep(0.436);

This doesn't work because Thread.Sleep accepts [int]

Any idea how to wait for x microseconds?

Is there .NET Micro equivalent to Arduino's DelayMicroseconds (http://www.arduino.c...layMicroseconds)

Simple traffic lights

17 October 2010 - 12:42 AM

Netduino traffic lights with
- Pedestrian priority button
- Pedestrian green light time left indicator
- Speaker for visually impaired pedestrians (PiezoSpeaker by James

Schema:

Posted Image

Build:

Posted Image

In action:

http://www.youtube.com/watch?v=snfWkRTfcjQ

It's my first project, so........

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.