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.

herbsti72's Content

There have been 12 items by herbsti72 (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#62049 Compiling Custom Firmware. emIDE?

Posted by herbsti72 on 07 April 2015 - 08:54 AM in Netduino Plus 2 (and Netduino Plus 1)

You are welcome :)




#62028 Compiling Custom Firmware. emIDE?

Posted by herbsti72 on 06 April 2015 - 11:16 AM in Netduino Plus 2 (and Netduino Plus 1)

'Msbuild' is not recognized as an internal or external command,
operable program or batch file.

This sounds like some enviroment variable is not set correctly!

 

if you install Visual Studio you get usually also some additional command prompts (eg. "Developer Command Prompt for VS2012").

If you run this command prompt shortcut it executes a batch file (on my computer "vcvars32.bat") which sets the correct enviroment variables to run msbuild and other tools from command line.

I guess you need to do the same before you try running some compilers...

 

 

 




#61973 Help me out with SPI Please.

Posted by herbsti72 on 29 March 2015 - 09:57 AM in Netduino 2 (and Netduino 1)

Hi,

sad to hear that it is still not working. :(

Last weekend I attached another Adadfruit LCD on my N2+ and it worked.

 

Maybe you have some wrong wiring?

Or something went wrong during soldering (cold solder joints)?

 




#61776 Preferred way to get IP from DHCP...

Posted by herbsti72 on 04 March 2015 - 01:24 PM in Netduino Plus 2 (and Netduino Plus 1)

HI Terrence,

 

you need to reference "Microsoft.SPOT.Net" Assembly, afterwards try following code to get IP with DHCP:

var interf = NetworkInterface.GetAllNetworkInterfaces()[0];
//Get Dynamic IP
interf.EnableDhcp();
interf.RenewDhcpLease();

For more information take a look on this project:

http://neonmikawebserver.codeplex.com/

 

It contains also other usefully network related code and how to setup simple webserver on N2+




#61726 Battery powered logger with GPRS using Netduino plus 1 / 2

Posted by herbsti72 on 26 February 2015 - 10:12 AM in Netduino Plus 2 (and Netduino Plus 1)

thanks for your post and link - the device looks really good, may in future projects I will switch to this kind of devices :)

But for now I try to learn eletronics and programming microcontroller and as I already own two Netduino 2+ I will try to use this before buying new devices.

 

Because of your link I also found this:

http://www.cooking-h...-ch/open-garden

Seems they sell quite nice shields, sensor and valves for irrigation systems.




#61719 Battery powered logger with GPRS using Netduino plus 1 / 2

Posted by herbsti72 on 25 February 2015 - 05:35 PM in Netduino Plus 2 (and Netduino Plus 1)

I am also planing to use my Netduino 2+ to operate irrigiation system in my garden.

 

I plan to use:

  • Solarpanel together with rechargeable batteries
  • LCD panel
  • temperature sensors
  • bluetooth to remotely operate it
  • Solenoid valves for open and close the water pipes.

 

LCD and temperature/humidity sensors are already working, next step is to get solenoid valves working (I already ordered one for testing).

I found somebody who did similar with Arduino/RF Transmitter:

http://rayshobby.blo...controller.html

It seems it is important to use some DC/DC step-up converter/MOSFET to operate solenoid valves.

 

For solarpanel and battery take a look on Sparkfun website, for example :

Charger: https://www.sparkfun.../products/12885

Battery: https://www.sparkfun.com/products/341

Solarpanel: https://www.sparkfun.com/products/7840




#61659 I2C not working on plus 2 (or regular 2)

Posted by herbsti72 on 19 February 2015 - 03:32 PM in Netduino Plus 2 (and Netduino Plus 1)

you need to take care that N2+ has his own pins for IC ("SC", "SD").

This pins are located near to network connector ...




#61627 OneWire with VS2013 and latest MicroFramework and Firmware 4.3.1

Posted by herbsti72 on 16 February 2015 - 08:36 AM in Netduino Plus 2 (and Netduino Plus 1)

HI Richard,

 

be sure to add reference to assembly "Microsoft.SPOT.Hardware.OneWire":

 

br,

Johannes

 

Attached Thumbnails

  • addreference.PNG



#61521 Help me out with SPI Please.

Posted by herbsti72 on 04 February 2015 - 10:38 PM in Netduino 2 (and Netduino 1)

How do you upload anyway :P

 

I need to use Firefox - IE 10 doesnt work very well with this forum ;-)

Right below of the edit box there is a "more reply options" button - if you click on this you are able to attach pictures and other documents to your post.




#61520 Help me out with SPI Please.

Posted by herbsti72 on 04 February 2015 - 10:34 PM in Netduino 2 (and Netduino 1)

At first I would upgrade to 4.3.1 so maybe there is a fix for SPI in newer version of MF.

Or is there some reason why you stuck on 4.2?

 

Second - on your pictures I cannot identify your wiring ;)

 

I have attached my wiring so you could compare it to yours... hope it helps :-)

Attached Thumbnails

  • wiring_total_view.jpg
  • wiring_lcd.jpg
  • wiring_netduino.jpg



#61508 Help me out with SPI Please.

Posted by herbsti72 on 04 February 2015 - 09:48 AM in Netduino 2 (and Netduino 1)

Which firmware have you installed on your Neduino 2?




#61481 Help me out with SPI Please.

Posted by herbsti72 on 03 February 2015 - 01:36 PM in Netduino 2 (and Netduino 1)

Hi David,

 

a few days ago I got ST7565 (Adafruit) working with my Netduino 2 Plus (see attachment).

I use the "AdaFruit ST7565 Negative LCD display" driver available in Netduino Helpers Library and it worked fine out of the box.

 

How is your ST7565 wired with Netduino?

At least you need to wire following pins (the bold ones you need to set on AdaFruit7565 constructor) :

GND:  GND
VDD:  3.3v

SID:  D11 (SPI MOSI)
SCLK: D13 (SPI CLK)
A0:   D7 (Data / Command)
/RST: D4
/CS:  D10 (or D8)

 

These pins are just for background light and are optional (so you can leave it unplugged for first tests):

B-:   LED Blue
G-:   LED Green
A+:   LED anode
R-:   LED Red

 

How to use AdaFruit7565 class in your code:

 

For creating instance of AdaFruit7565 class you need to take care to set correct pins (marked above red!) in constructor!

Here is some sample you can use in program.cs:

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;
using netduino.helpers.Hardware;
 
namespace AdaFruit7565Test {
    public class Program {
 
        // you need to reflect pin configuration in AdaFruit7565 constructor
        public static AdaFruit7565 lcd =
           new AdaFruit7565(Pins.GPIO_PIN_D7, Pins.GPIO_PIN_D4, Pins.GPIO_PIN_D10, speedKHz: 21000);
 
        public static void Main() {
 
            lcd.Initialize();     // init display - important!
            lcd.SetContrast(AdaFruit7565.ContrastMedium);
            lcd.DrawString(0, 1, "Test");
            lcd.Refresh();        // refresh screen and shows text
            Thread.Sleep(5000);   // wait 5 seconds before set powersavemode
            lcd.ClearScreen();
            lcd.DrawString(0, 1, "Test 2");
            lcd.Refresh();        // refresh screen
            Thread.Sleep(5000);   // wait 5 seconds before set powersavemode
            lcd.PowerSaveMode();  // set display to powersave mode
 
        }
    }
}

What happens if you try above code?

 

br,
Johannes

 

 

Attached Thumbnails

  • Netduino_TempLogger1_small.jpg




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.