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.

david98xp's Content

There have been 55 items by david98xp (Search limited from 07-June 23)


By content type

See this member's


Sort by                Order  

#60146 Windows on Devices? When?

Posted by david98xp on 19 September 2014 - 06:56 AM in General Discussion

I live in NZ too. Wellington.




#60145 Windows on Devices? When?

Posted by david98xp on 19 September 2014 - 06:56 AM in General Discussion

I live in NZ too. Wellington.




#60893 Why is this not working? V C# 2010 with Netduino 2.

Posted by david98xp on 06 December 2014 - 10:58 PM in Netduino 2 (and Netduino 1)

Hi david,

What error are you getting, exactly? Any chance you can simplify the solution down a bit and we can try to help bug hunt here...?

Chris

Actually here's the problem! I own a netduino 2 and a st7565 negative GLCD. I'm now trying to run Fabien Royer's AdaFruit7565 test program. It says it won't work with 4.2 as it's written in 4.1. I went to Project Propeties>Application>Target>I changed it from 4.1 to 4.2. Now it has this "Rebooting error". As well as "an error has occured, please check your hardware."

 

I'm very much in a rush and I need some way to get my LCD Working.




#60924 Why is this not working? V C# 2010 with Netduino 2.

Posted by david98xp on 09 December 2014 - 03:22 PM in Netduino 2 (and Netduino 1)

Umm.. It's not just one part. Check out my newer post on backwards .



#60876 Why is this not working? V C# 2010 with Netduino 2.

Posted by david98xp on 05 December 2014 - 07:16 PM in Netduino 2 (and Netduino 1)

Link:http://netduinohelpe...er:AdaFruit7565

Error on the public class with this AdaFruitSSD1306 thingy here...

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;

namespace netduino.helpers.Hardware {
    // Based on https://github.com/adafruit/ST7565-LCD
    public class AdaFruit7565 : AdaFruitSSD1306 {
        new public enum Command {
            DisplayOff = 0xAE,
            DisplayOn = 0xAF,
            DisplayStartLine = 0x40,
            PageAddress = 0xB0,
            ColumnAddressHigh = 0x10,
            ColumnAddressLow = 0x00,
            AdcSelectNormal = 0xA0, // X axis flip OFF
            AdcSelectReverse = 0xA1, // X axis flip ON
            DisplayVideoNormal = 0xA6,
            DisplayVideoReverse = 0xA7,
            AllPixelsOff = 0xA4,
            AllPixelsOn = 0xA5,
            LcdVoltageBias9 = 0xA2,
            LcdVoltageBias7 = 0xA3,
            EnterReadModifyWriteMode = 0xE0,
            ClearReadModifyWriteMode = 0xEE,
            ResetLcdModule = 0xE2,
            ShlSelectNormal = 0xC0, // Y axis flip OFF
            ShlSelectReverse = 0xC8, // Y axis flip ON
            PowerControl = 0x28,
            RegulatorResistorRatio = 0x20,
            ContrastRegister = 0x81,
            ContrastValue = 0x00,
            NoOperation = 0xE3
        }

        public AdaFruit7565(Cpu.Pin dc, Cpu.Pin reset, Cpu.Pin chipSelect, SPI.SPI_module spiModule = SPI.SPI_module.SPI1, uint speedKHz = 10000)
            : base(dc, reset, chipSelect, spiModule, speedKHz) {
        }

        public void Initialize() {
            resetPin.Write(false);
            Thread.Sleep(50);
            resetPin.Write(true);

            dcPin.Write(DisplayCommand);

            SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.LcdVoltageBias7);
            SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.AdcSelectNormal);
            SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.ShlSelectReverse);
            SendCommand((AdaFruitSSD1306.Command)((int)(AdaFruit7565.Command.DisplayStartLine) | 0x00));
            
            SendCommand((AdaFruitSSD1306.Command) ((int)(AdaFruit7565.Command.PowerControl) | 0x04)); // turn on voltage converter (VC=1, VR=0, VF=0)
            Thread.Sleep(50);
            SendCommand((AdaFruitSSD1306.Command)((int)(AdaFruit7565.Command.PowerControl) | 0x06)); // turn on voltage regulator (VC=1, VR=1, VF=0)
            Thread.Sleep(50);
            SendCommand((AdaFruitSSD1306.Command)((int)(AdaFruit7565.Command.PowerControl) | 0x07)); // turn on voltage follower (VC=1, VR=1, VF=1)
            Thread.Sleep(50);

            SendCommand((AdaFruitSSD1306.Command)((int)(AdaFruit7565.Command.RegulatorResistorRatio) | 0x06)); // set lcd operating voltage (regulator resistor, ref voltage resistor)

            SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.DisplayOn);
            SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.AllPixelsOff);
        }

        public const uint ContrastHigh = 34;
        public const uint ContrastMedium = 24;
        public const uint ContrastLow = 15;

        // 0-63
        public void SetContrast(uint contrast) {
            dcPin.Write(DisplayCommand);
            SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.ContrastRegister);
            SendCommand((AdaFruitSSD1306.Command)((int)(AdaFruit7565.Command.ContrastValue) | (contrast & 0x3f)));
        }

        new public void InvertDisplay(bool cmd) {
            dcPin.Write(DisplayCommand);
            if (cmd) {
                SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.DisplayVideoReverse);
            } else {
                SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.DisplayVideoNormal);
            }
        }

        public void PowerSaveMode() {
            dcPin.Write(DisplayCommand);
            SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.DisplayOff);
            SendCommand((AdaFruitSSD1306.Command)AdaFruit7565.Command.AllPixelsOn);
        }

        protected const int StartColumnOffset = 1;

        public override void Refresh() {
            for (int page = 0; page < 8; page++) {
                dcPin.Write(DisplayCommand);
                SendCommand((AdaFruitSSD1306.Command)((int)(AdaFruit7565.Command.PageAddress) | pageReference[page]));
                SendCommand((AdaFruitSSD1306.Command)((int)(AdaFruit7565.Command.ColumnAddressLow) | (StartColumnOffset & 0x0F)));
                SendCommand((AdaFruitSSD1306.Command)((int)(AdaFruit7565.Command.ColumnAddressHigh) | 0));
                SendCommand((AdaFruitSSD1306.Command)((int)(AdaFruit7565.Command.EnterReadModifyWriteMode)));
                dcPin.Write(Data);
                Array.Copy(displayBuffer, Width * page, pageBuffer, 0, pageSize);
                Spi.Write(pageBuffer);
            }
        }

        protected const int pageSize = 128;
        protected int[] pageReference = new int[] { 4, 5, 6, 7, 0, 1, 2, 3 };
        protected byte[] pageBuffer = new byte[pageSize];
    }
}




#60825 We need new library sketches!

Posted by david98xp on 01 December 2014 - 06:09 AM in Beta Firmware and Drivers

I reckon we need the following sketches:

ST7565

SSD1306

Other Adafruit tft's

joysticks

speakers

USB/PS2 keyboards.

E-paper displays




#60895 We need new library sketches!

Posted by david98xp on 07 December 2014 - 07:10 AM in Beta Firmware and Drivers

I posted a library for the SSD1306 some time ago ...

Make your own libraries often?




#60996 To Chris Walker

Posted by david98xp on 16 December 2014 - 09:41 PM in Netduino 2 (and Netduino 1)

Hmm so it works by powering on a white backlight but nothing else happens.

 

 

I'm from Wellington :D




#60983 To Chris Walker

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

Right how do I do that?

Sorry, I'm 14 and this is my first project, real learning curb :)

 

BTW, I'm also from NZ :D

Cheers




#60973 To Chris Walker

Posted by david98xp on 14 December 2014 - 08:51 PM in Netduino 2 (and Netduino 1)

https://onedrive.live.com/redir?resid=95EDA52E6601F7B0!18018&authkey=!ALH6P7svj1YQ3WA&ithint=folder%2c

Here's a like to my project I need help with. It's under sample>Adafruit7565 test>Adafruit75652(the file you want)

 

Please tell me what's wrong with it.

 

Use:

Netduino 2 with 4.2




#61138 To Chris Walker

Posted by david98xp on 04 January 2015 - 12:46 AM in Netduino 2 (and Netduino 1)

Nope no bridge but at the mean time I'm focusing on the lcd pixels.




#61016 To Chris Walker

Posted by david98xp on 18 December 2014 - 09:40 PM in Netduino 2 (and Netduino 1)

Ok I updated it on the onedrive link. It has no deployment errors. The problem is that the white backlight turns on but nothing happens from then on. I'm pretty darn sure I wired it up correctly. My soldering skills are beginner but everything looks connected vividly.




#61249 To Chris Walker

Posted by david98xp on 14 January 2015 - 08:55 AM in Netduino 2 (and Netduino 1)

Any idea? Do I need to modify the driver?



#61025 To Chris Walker

Posted by david98xp on 19 December 2014 - 11:12 PM in Netduino 2 (and Netduino 1)

Ah yes, very well. I sent it into the Onedrive folder via my Windows Phone. Hope that's got what you'll need.




#61519 Things we can learn from GHI

Posted by david98xp on 04 February 2015 - 09:06 PM in General Discussion

Juzzer's watch actually seems cool. I''d kickstart it.

Oh and Chris, I'd like you to try find some ways to make everything a single standard. I'm pulling my hair out getting a simple LCD to work from Fabien's NP1 to my N2. If there's a netduino 3, stick to chips that are VERY similar because I hate having to read schematics to find the correct SPI module.




#61433 Things we can learn from GHI

Posted by david98xp on 02 February 2015 - 04:32 AM in General Discussion

I'm not going to lie, GHI has a much better community. Why?

  1. Trained experts supporting new comers VERY well.
  2. A very reliable Gadgeteer production.
  3. Many members can show their custom made parts.
  4. Their "Codeshare" is a brillient place for Drivers.
  5. Though not as open source, good structure and gameplan.

I hope we can all learn from this.




#60994 The GoBus Upgrade

Posted by david98xp on 16 December 2014 - 08:53 PM in Netduino Go

I'm not a real GO user but the fact that it ticked Fabien Royer off, it feels that the.net MF is not as powerful. I'd like to inherit skills so I can support peoples projects but we need promises fulfilled first.



#60944 The GoBus Upgrade

Posted by david98xp on 11 December 2014 - 06:01 AM in Netduino Go

Don't know if you know but this was one of the few things that turned Fabian off Secret Labs. He mentions you promised to create an Ethernet module for the GO. Also he doesn't like how the Agent watch is still not up for sale yet.

I respect you but I'm asking you to do your best to get him back. Fabian Royer is a genius and his contributions made to the .NET MF were priceless!

 

Cheers Chris!




#60629 Speed with TFT displays.

Posted by david98xp on 05 November 2014 - 05:25 AM in General Discussion

Hi guys. No matter what version of netduino you have, could you make a video testing out a tuft display please?

I want to see the performance of 32 bit ATMEL and STM chips.

 

Thank you!




#61243 SD card?

Posted by david98xp on 14 January 2015 - 01:36 AM in Netduino Plus 2 (and Netduino Plus 1)

Why is there a limit? Is it the MCU?




#61802 raspberry pi 2

Posted by david98xp on 08 March 2015 - 03:53 AM in General Discussion

If we have a N+3, I'd like to see built in HDMI with a driver chip for fast performance while keeping the code as native as possible.




#61432 raspberry pi 2

Posted by david98xp on 02 February 2015 - 04:28 AM in General Discussion

This is amazing. The sad truth is it COULD stop me using netduino.




#61155 Outdated Driver?

Posted by david98xp on 05 January 2015 - 02:57 AM in Netduino 2 (and Netduino 1)

https://onedrive.live.com/redir?resid=95EDA52E6601F7B0!18018&authkey=!ALH6P7svj1YQ3WA&ithint=folder%2c

On my netduino 2 with 4.2 I've finally ported Fabien Royer's netduino helpers from 4.1 to 4.2 for my ST7565 lcd. VS deployed it successfully eventually. Nothing happens in the sample application but a white backlight. Is the driver corrupt on the newer gen netduino's?




#61394 NETMF 4.3 QFE1 R2 SDK is now out of beta

Posted by david98xp on 28 January 2015 - 12:13 AM in General Discussion

Well I'm looking for help(still) with my GLCD and have had problems on the newer hardware and framework. Maybe I might give 4.3 a try but only if it has relieble universal support so I don't need to port code.




#61018 Netduinohelpers - graphic LCD

Posted by david98xp on 18 December 2014 - 10:10 PM in Netduino Plus 2 (and Netduino Plus 1)

I'm using a N2. I am on 4.2 and ported everything and deleted most things I wouldn't use. It deploys good but only a white backlight comes on while nothing is shown on screen.

My display is also the negative rgb one.





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.