asciiman's Content - Netduino Forums
   
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.

asciiman's Content

There have been 29 items by asciiman (Search limited from 20-April 23)


By content type

See this member's


Sort by                Order  

#63487 LED/LCD TFT Screen

Posted by asciiman on 13 July 2015 - 01:14 PM in Netduino Plus 2 (and Netduino Plus 1)

hi

dont use CD4050.

 

 The display interface is serial, it just needs 5 wires (CS, DC, SCK, RST, SDI) for controlling.

 LCD_CS -- ChipSelect any Digital Pin
 LCD_DC -- Data/Command any Digital Pin
 LCD_SCK -- SPCK-D13
 LCD_Reset -- Reset any Digital Pin
 LCD_SDI(MOSI) -- SDI/SDA (Serial Data Input)  MOSI-D11
 LCD_SDO(MISO) -- SDO/SDA (Serial Data Output) MISO-D12 for SDCard
 LCD_Led -- any Digital Pin Or any PWM Pin Or 3.3V maximum Power Supply Pin
 
 but i am not sure Vcc is 5v.  You must try 3.3v first
 
U can use Analog pin like Digital PIN



#63477 LED/LCD TFT Screen

Posted by asciiman on 13 July 2015 - 06:32 AM in Netduino Plus 2 (and Netduino Plus 1)

hi
vecc solution code is working perfect. 
 
i remember Power pin is 5v, and backligth pin is 3.3v
you need power and backlight voltage



#63089 Sd Card write issues

Posted by asciiman on 09 June 2015 - 01:56 PM in Netduino Plus 2 (and Netduino Plus 1)

hi

 

Microsoft.SPOT.IO.VolumeInfo.GetVolumes()[0].FlushAll();

 

but you must read any document about this




#61996 5v PWM?

Posted by asciiman on 31 March 2015 - 10:49 AM in Netduino 2 (and Netduino 1)

hi chris

 

Can i plug 24 volt gnd for dc motor like this

 

https://sites.google.../led_controller




#61836 Flash / Code Storage / RAM ..etc.

Posted by asciiman on 10 March 2015 - 06:43 PM in General Discussion

Hi sir 

This is my understand. thnx for you

 

Untitled-1_zpsrqcqhr3q.png




#61827 Flash / Code Storage / RAM ..etc.

Posted by asciiman on 10 March 2015 - 04:43 AM in General Discussion

thank you sir

 

Why this code is show 100 kb not 192

Microsoft.SPOT.Debug.Print(Debug.GC(true).ToString());




#61819 Flash / Code Storage / RAM ..etc.

Posted by asciiman on 09 March 2015 - 02:52 PM in General Discussion

Hi

 

Netduino +2 has 1MB flash + 384Kb Code Storage and 192Kb RAM (tech spec)

 

Is 1MB flash  = 384Kb Code Storage + 192Kb RAM + ..etc. 

 



#61800 is Stringbuilder using ArrayList ?

Posted by asciiman on 07 March 2015 - 01:50 PM in Visual Studio

Hi,

 

?s stringbuilder using Arraylist?

 

http://neuromancer.i...rk-collections/

 

One main point to consider when using collections in a micro framework device is that of memory consumption. Each collection carries overhead — data that serves no other purpose than to facilitate the items you store in the collection. For example, inserting hundreds of items in an ArrayList will quickly use up most of the memory on a Netduino.




#61789 StreamReader vs FileStream

Posted by asciiman on 06 March 2015 - 09:39 AM in Netduino Plus 2 (and Netduino Plus 1)

hi guys

 

i read this "StreamReader is a memory pig. Use FileStream directly." is this true. FileStream is light version of StreamReader.

 

thnx




#61701 WebAPI and Socket

Posted by asciiman on 23 February 2015 - 07:41 PM in Netduino Plus 2 (and Netduino Plus 1)

hi

i fix it.

Content must be in   "  and  " 

 

for example

string xContent = "asdasdfaf" ;   is wrong   xContent = "\"asdasdfaf\"";  is true.

 

 

https://www.youtube....h?v=5WtRF5PkBe8




#61684 WebAPI and Socket

Posted by asciiman on 21 February 2015 - 03:16 PM in Netduino Plus 2 (and Netduino Plus 1)

hi sir 

I try it but dont working.

 

byte[] xContent = Convert.FromBase64String(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("this is content")));

 

I cant add .rar file

 

http://ul.to/ixhkmyn2




#61681 WebAPI and Socket

Posted by asciiman on 21 February 2015 - 10:18 AM in Netduino Plus 2 (and Netduino Plus 1)

hi guys

 

I can use  "Get or Post" method with simple socket connection. I can send any parameters via url to "Get or Post" method. But i cant use [formBody] property.

 

What is wrong?

            var xSocket = new System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp);
            var xEndPoint = new System.Net.IPEndPoint(System.Net.Dns.GetHostEntry("127.0.0.1").AddressList[0], 80);

            xSocket.Connect(xEndPoint);
            xSocket.SetSocketOption(System.Net.Sockets.SocketOptionLevel.Tcp, System.Net.Sockets.SocketOptionName.NoDelay, true);
            xSocket.SendTimeout = 1000;

            //byte[] xContent = System.Text.Encoding.UTF8.GetBytes("this is content");

            string xRequestLine = "Get /api/My/45 HTTP/1.1\r\n";

            string xHeaderLines =
                "Host: localhost" + "\r\n" +
                "Accept: text/json; charset=utf-8" + "\r\n" +
                "Accept-Encoding: gzip, deflate" + "\r\n" +
                //"Content-Type: application/json" + "\r\n" +
                //"Transfer-Encoding: chunked" + "\r\n" +
                "Connection: Close" + "\r\n" +
                //"Content-Length: " + xContent.Length.ToString() + "\r\n" +
                "\r\n";     // EmptyLine

            xSocket.Send(System.Text.Encoding.UTF8.GetBytes(xRequestLine));
            xSocket.Send(System.Text.Encoding.UTF8.GetBytes(xHeaderLines));
            //xSocket.Send(xContent);




#61533 LED/LCD TFT Screen

Posted by asciiman on 06 February 2015 - 08:51 AM in Netduino Plus 2 (and Netduino Plus 1)

hi sir

I write this code for using HelpersFont. I completed a few days ago.

    public class BitmapCharacter
    {
        public byte Width;          // Columns
        public byte Height;         // Rows
        public ushort[] Pixels;     // Includes color data
    }

    public class FontBase
    {

        public static BitmapCharacter getBitmapCharacter(char pChar, ushort pColor, ushort pTransparentColor, byte pFontHeight, ref ushort[] pFontMap, ref byte[] pFontBitmap)
        {
            byte xFontMapIndex = (byte)(pChar - 32);
            ushort xFontBitmapIndex = pFontMap[xFontMapIndex * 2 + 1];

            byte xCharWidthPixel = (byte)(pFontMap[xFontMapIndex * 2]);  // Bit or Pixel
            byte xColumnByteCount = (byte)(xCharWidthPixel / 8 + (xCharWidthPixel % 8 == 0 ? 0 : 1));

            var xPixelArray = new System.Collections.ArrayList();
            for (byte yIndex = 0; yIndex < pFontHeight; yIndex++)
            {
                UInt64 tmpInt64 = 0;    // RowCount = FontHeight, ColumnCount = CharWidthPixel (64 Max)
                for (byte xIndex = 0; xIndex < xColumnByteCount; xIndex++)
                    tmpInt64 = tmpInt64 << 8 | pFontBitmap[xFontBitmapIndex + yIndex * xColumnByteCount + xIndex];

                for (int xColumnIndex = 0; xColumnIndex < xCharWidthPixel; xColumnIndex++)
                {
                    byte xShiftCount = (byte)(xColumnByteCount * 8 - xColumnIndex - 1);

                    if (((tmpInt64 >> xShiftCount) & 1) == 1)
                        xPixelArray.Add(pColor);
                    else
                        xPixelArray.Add(pTransparentColor);
                }
            }

            var xBitmapCharacter = new BitmapCharacter()
                {
                    Width = xCharWidthPixel,
                    Height = pFontHeight,
                    Pixels = (ushort[])xPixelArray.ToArray(typeof(ushort))
                };

            return xBitmapCharacter;
        }

    }

I am using helpers font because i cant use any other font. For example created by TinyFontToolGUI.exe

pls look at this

 

https://learn.adafru...itmap-plus-text

 

 

Every think is lastes..!
 
Netduino is Netduino +2
Firmware is v4.3.1.0
Netduino SDK is v4.3.1.0
Framework is v4.3.1.0(QFE2)
Visual Studio is v2013 ...!

 

but i cant use it.

 

I have two problem with helpersfont

  1) I cant find larger font than Verdana14  ( or any font like helpersfont)

  2) I cant write transparent font for example over any image.

 

I will upload video today for problems..!

My english is not good sorry..!




#61506 How to not short circuit my Netduino ?

Posted by asciiman on 04 February 2015 - 08:27 AM in Netduino Plus 2 (and Netduino Plus 1)

hi Chris

 

Can i plug  2Amper or more to  7.5~9volt VIN power?

Or what is the limit of Amper ?




#61334 LED/LCD TFT Screen

Posted by asciiman on 21 January 2015 - 07:59 PM in Netduino Plus 2 (and Netduino Plus 1)

hi sir 

 
i am waiting long time for this.
 
thanks so much..!
 
my lcd is 
 
it dont have touching  and i dont need :)
 
But can we use Netduino Helpers Font ?



#61242 Internet data transfer

Posted by asciiman on 13 January 2015 - 07:32 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi

I wanna send and receive image from internet.

Whic is the best way.

 

I try WCF service but it use xmlreader and xmlreader is not recommended for netduino?

 

 




#61106 TFT LCD (ILI9341)

Posted by asciiman on 31 December 2014 - 03:46 PM in Netduino Plus 2 (and Netduino Plus 1)

hi sir,

 

unfortunately i dont have any code.




#60965 Netduino 2 can't run N1(+ or not) code.

Posted by asciiman on 13 December 2014 - 06:07 PM in Netduino 2 (and Netduino 1)

hi Chris

 

I cant use ST7735 chip with Fabienroyer code.

Is this possible with Neduino2+




#60434 Camera recommendation

Posted by asciiman on 16 October 2014 - 04:40 PM in Netduino Plus 2 (and Netduino Plus 1)

hi

 

I need simple camera module with ready c# code?

 

Which camera wolud you suggest?




#59957 SD Unmount error

Posted by asciiman on 30 August 2014 - 08:44 PM in Netduino 2 (and Netduino 1)

Hi 

I can read and write to SD with Netduino 2 and microSD adapter.

 

but when i call UnmountSD() method occurs an System.IO.IOExecption error.

I am using Samsung MicroSD 2gb

 

 

 

 




#59908 Microframework static constructor method

Posted by asciiman on 26 August 2014 - 05:50 PM in Visual Studio

hi,

 

This is not good because i am reading settings from xml file in static void main { } block and then assign this values to other static members in Information.cs (class)

after this 

I use this values when need. (Access the corresponding class)




#59873 Microframework static constructor method

Posted by asciiman on 24 August 2014 - 09:53 PM in Visual Studio

Is this a bug.

 

In .Net Microframework, all static constructor methods fired immediately.

In .Net Framework, constructor methods fired when access the class.

 

 




#59826 Netduino Unique ID

Posted by asciiman on 21 August 2014 - 06:28 AM in Netduino 2 (and Netduino 1)

thnx




#59710 TFT LCD Display

Posted by asciiman on 14 August 2014 - 07:22 AM in Netduino 2 (and Netduino 1)

hi

 

http://forums.netdui...ft-lcd-ili9341/

 

sir 

alesbedac

 

wrote this code and it works but slowly

 

i hope so alesbedac write new code :)




#59393 Netduino Unique ID

Posted by asciiman on 25 July 2014 - 01:08 PM in Netduino 2 (and Netduino 1)

Hi sir,

 

When I use EEPROM  that somebody can read and write on other EEPROM isnt it?

Is EEPROM has uniqueID ?





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.