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.

Omar (OZ)'s Content

There have been 37 items by Omar (OZ) (Search limited from 28-April 23)


By content type

See this member's


Sort by                Order  

#16678 Netduino and a touch screen as input interface

Posted by Omar (OZ) on 13 August 2011 - 02:31 AM in Netduino 2 (and Netduino 1)

i don't understand, do not exists simple netduino compatible touch screen (without serial communications). I know that most of arduino shield is compatible with netduino. So arduino users don't have support of touch screen?


I don't know of any touch screen shields out there right now. the screen I linked is not too hard to use, if you're looking or an extremely easy solution I don't think you'll find it at this point. You can try this website http://shieldlist.org/ to find a shield that might work with the netduino. I havent tested any touch screen shields myself though



#16736 Netduino and a touch screen as input interface

Posted by Omar (OZ) on 15 August 2011 - 12:07 PM in Netduino 2 (and Netduino 1)

Ok i can buy this model as you suggest: µLCD-32PT(GFX). But really i don't understand how i can use it for my purpose.
If you read all my first post, you'll see what i need. Substantially i need virtual buttons to touch on the screen and activate specific ports of shift registers. Obviously i need other function like create list of string to memorize in a sd card (so the touch screen must show the list with scrollbars) and other..
So i ask you: with simple netduino (not netduino plus) i can connect the µLCD-32PT(GFX) and operate? I think that i need to communicate with serial port because activating shift register.. right? This serial port need another shield? because with normal netduino i don't see a serial port.
If you can help me to understand, i'm grateful ;)


You can use that screen with a regular netduino. You can use it by connecting it to one of the two serial ports on the netduino. If you post an image of what you'd like the graphical interface (whats on the screen) to look like, I'd be glad to help you with programming the screen. Its best to program the screen using their language, and then just send a number to the netduino which corresponds with the button pressed or whatnot.

So here is a bit of explanation of how it will work.

[screen side]
1 Draw screen graphics
2 Wait for a touch on the screen
3 Identify which button was pressed based on location of touch
4 Send data to the netduino like the number 1 for button 1 / relay 1.
[netduino side]
5 Netduino will read the number
6 Do whatever is necessary like shiftclass.TurnOn(number);



#25910 Netduino 3D Model is Done!!

Posted by Omar (OZ) on 23 March 2012 - 08:19 PM in Netduino 2 (and Netduino 1)

Hi OZ,

It seems like the link is broken above. Any chance you still have the 3D model kicking around?

http://sketchup.goog...c35&prevstart=0
So that's where I left it :)



#26646 Limited Edition Netduino Go mainboards...

Posted by Omar (OZ) on 06 April 2012 - 06:56 PM in Netduino Go

My thoughts on the matte solder mask con be refined to: awesome! :D I like the fact that it doesn't show fingerprints! It also doesn't get oily from your hands, unless you touch it after eating or dipping your hands in oil :P . It looks very nice and smooth. Essentially, its very shiny, but figuratively.



#16874 LCD Help needed, 16x2s are boring

Posted by Omar (OZ) on 20 August 2011 - 01:50 PM in Netduino 2 (and Netduino 1)

Hi guys,

I've played a little with the code and found that we can't use text functions together with graphics - the text goes directly to the LCD than the graphic gets into the buffer first and than whole buffer transferred to display.
So I added functions DrawString and DrawChar that draw string into buffer first, so it can be combined with graphics and shown by calling Lcd.Refresh() function:

public void DrawString(int x, int line, string str, bool mode)
        {
            foreach (char c in str)
            {
                DrawCharacter(x, line, c,mode);

                x += 5; // 6 pixels wide

                if (x + 5 >= 84)
                {
                    x = 0;    // ran out of this line
                    line++;
                }

                if (line >= 48 / 8)
                {
                    return;        // ran out of space :(
                }
            }
        }

        protected void DrawCharacter(int x, int line, char c, bool mode)
        {
            for (int i = 0; i < 5; i++)
            {
                if (mode)
                    ByteMap[x + (line * 84)+ i] |= NokiaCharacters.ASCII[c - 0x20][i];
                else
                    ByteMap[x + (line * 84) + i] |=(byte) ~NokiaCharacters.ASCII[c - 0x20][i];
                //x++;
            }
        }

Regards,
Eugene


Nice Eugene! You're welcome to re-post the code with that added in.



#26534 hardware page on netduino site

Posted by Omar (OZ) on 05 April 2012 - 01:32 PM in General Discussion

I think Secret Labs has been busy ;) Meanwhile you can use these links: Netduino - http://www.netduino....duino/specs.htm Netduino Plus - http://www.netduino....oplus/specs.htm Netduino Mini - http://www.netduino....omini/specs.htm Netdino GO! - http://www.netduino....inogo/specs.htm (Reason they've been busy it seems :P )



#30551 Custom PC Case Lighting

Posted by Omar (OZ) on 11 June 2012 - 10:03 PM in Project Showcase

I finally got around to making something with my mini that has a somewhat permanent use. Check out the video first to see its beauty :)



Some notes:
The RGB LED strip is common anode, so if your strip is common cathode make sure you change the wiring to account for that. The code as well, because the lights are on when the signal is LOW the lights in code are on when they duty cycle is 0. If your lights are common cathode you'll have to keep that in mind.

The chips I used are the MAXIM MAX4420, they are High-Speed 6A single MOSFET drivers. Note they 'single', you'll need one per color or for each section you want to control individually.

Pretty picture time!

case lighting breadboard.jpg

case lighting breadboard layout.JPG

breadboard in case.jpg

        public static void Main()
        {
            PWM red, green, blue;

            red = new PWM(Pins.GPIO_PIN_17);
            green = new PWM(Pins.GPIO_PIN_18);
            blue = new PWM(Pins.GPIO_PIN_19);

            red.SetDutyCycle(100);
            green.SetDutyCycle(100);
            blue.SetDutyCycle(100);

            while (true)
            {
                for (uint r = 100; r > 0; r -= 5, Thread.Sleep(50))
                    red.SetDutyCycle(r);

                for (uint b = 0; b < 100; b += 5, Thread.Sleep(50))
                    blue.SetDutyCycle(B);

                for (uint g = 100; g > 0; g -= 5, Thread.Sleep(50))
                    green.SetDutyCycle(g);

                for (uint r = 0; r < 100; r += 5, Thread.Sleep(50))
                    red.SetDutyCycle(r);

                for (uint b = 100; b > 0; b -= 5, Thread.Sleep(50))
                    blue.SetDutyCycle(B);

                for (uint g = 0; g < 100; g += 5, Thread.Sleep(50))
                    green.SetDutyCycle(g);
            }
        }



#30557 Custom PC Case Lighting

Posted by Omar (OZ) on 11 June 2012 - 11:16 PM in Project Showcase

Oh man, that's pretty cool. I'm thinking that someone could pick this up and build a PC app that would change their colors based on actions/events on the computer.

It's like Alienware on steroids :)

Thanks for sharing this!

Chris


Yeah Arron wants to do something like it but much fancier, and I plan on getting some app made to control it. Near future i think...



#17128 Beta driver for .NET MF 4.2 RC3+

Posted by Omar (OZ) on 26 August 2011 - 09:00 PM in Beta Firmware and Drivers

Still having BSOD when unplugging the netduino plus when its hanging on deployment.



#16088 Analog pins not accurate

Posted by Omar (OZ) on 31 July 2011 - 01:42 AM in Netduino Plus 2 (and Netduino Plus 1)

When applying steady voltage in the range of 3.3V to the analog pin I get no steady readings in the digital converted value.

The Netduino is a revB board and the AREF is also coubled to the 3.3V internal supply on the board.

The code attached


        private int read_a(AnalogInput readport)
        {
            int avg = 10;
            int[] a_data = new int[avg];
            int average = 0;
            string readresult = "";
            for (int i = 0; i < avg; i++)
            {
                a_data[i] = readport.Read();
                average += a_data[i]/avg;
                readresult += a_data[i].ToString() + " " ;
            }
            
            Debug.Print(readresult);
            return average;
        }

I think this is wrong because of these values:

476 473 474 474 477 473 476 475 475 476
bat1_a 470

when it should return 474.9 or 475 if you prefer.

So try this:
        private int read_a(AnalogInput readport)
        {
            int nums = 10;
            int total = 0;
            double average;
            string readresult = "";

            for (int i = 0; i < nums; i++)
            {
                int temp = readport.Read();
                total += temp;
                readresult += temp + " " ;
            }

            average = temp / nums;

            Debug.Print(readresult);

            return (int)average;
        }
if you want to round up then do: return (int)(average + 0.5);

Let me know if those averages are accurate then.
Sorry I had to leave you this morning, I had to get to the airport.



#16854 analog input

Posted by Omar (OZ) on 19 August 2011 - 11:56 PM in Netduino Plus 2 (and Netduino Plus 1)

hi folks,

i´m a beginner with programming and wan´t to know how i can read or convert input signals??
i conected a poti with the analog input, i will that the led from D0 by low voltage pegel shine and the led from D1 by high voltage pegel or so.

Please cam someone post some ideas for a code for c#.

Thanks a lot

Markus


This might help: http://wiki.netduino...ntiometers.ashx



#16273 A long long time ago...

Posted by Omar (OZ) on 03 August 2011 - 08:46 PM in General Discussion

Happy Birthday to the Netduino!! Whats the birth date of his two younger brothers? (Mini and Plus)




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.