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.

Fahdil's Content

There have been 53 items by Fahdil (Search limited from 15-May 23)


By content type

See this member's


Sort by                Order  

#56314 Extensive driver for the MCP23S17 I/O expander

Posted by Fahdil on 23 February 2014 - 09:56 PM in Project Showcase

It's clear enough for me... God thanks....

 

so.. for the LCD display,, there is no easier way to mix it with microLiquidCristal class.

var lcdProvider = new GpioLcdTransferProvider(MCP23S17.Pins.GPIO_12, // RSMCP23S17.Pins.GPIO_11, // enableMCP23S17.Pins.GPIO_PIN_10, // d4MCP23S17.Pins.GPIO_PIN_9, // d5MCP23S17.Pins.GPIO_PIN_8, // d6MCP23S17.Pins.GPIO_PIN_7); // d7var myLcd = new Lcd(lcdProvider);myLcd.begin(16,2);

and..... maybe a little modification on LcdProvider Class....  ^_^

but First thing to do is lookin for the chip on the market. hepfh.... :blink:




#56310 Extensive driver for the MCP23S17 I/O expander

Posted by Fahdil on 23 February 2014 - 08:27 PM in Project Showcase

ok.. another great work Andy. 

 

allows for multiple MCP23S17s to be defined and will produce outputs in a continuous array

 

so... actually i dont need to drive LCD display using M74HC595. I think it should be easier to drive it using MCP2317.... :rolleyes:

 

thanks in advance for hanz and andy.




#56300 Extensive driver for the MCP23S17 I/O expander

Posted by Fahdil on 23 February 2014 - 01:51 PM in Project Showcase

what a great work :ph34r: ...

 

but I've headache while read those code... hahaha :lol:

 

little bit slowly to understand the code. :P .... 




#56317 Extensive driver for the MCP23S17 I/O expander

Posted by Fahdil on 23 February 2014 - 10:17 PM in Project Showcase

exactly..... :D...  thanks to you.... 

 

I hope to see that chip on the market. Last time i looked for 74HC595, it takes 2hours before i found 2 of it on the  market!!! :lol:

 

cheers




#55696 DS1307 Real Time Clock

Posted by Fahdil on 28 January 2014 - 06:22 AM in Project Showcase

Sorry Late Response,

 

I will put my netduino as Weather Station in a middle of forest, it will hard to get any internet connection. so I planed to sync my RTC to my PC clock. :huh:

 

if in the Arduino I just run this code...

    // following line sets the RTC to the date & time this sketch was compiled    RTC.begin(DateTime(__DATE__, __TIME__)); 

very appreciate for any explain... :D

 

Cheers




#55577 DS1307 Real Time Clock

Posted by Fahdil on 23 January 2014 - 02:59 PM in Project Showcase

what a silly... :unsure:

 

I just Run this code

// TODO: Do this only once to set your clock//clock.SetClock(10, 8, 26, 17, 45, 30, DayOfWeek.Wednesday);

then It's work..... :P

 

so I need to set the clock at the first time. umm

 

is there any way for me to get the Clock from my PC?




#55576 DS1307 Real Time Clock

Posted by Fahdil on 23 January 2014 - 02:32 PM in Project Showcase

Still can't get the DateTime.Now... it's return 2002/01/01 00:00:00

 

I'm using RTC from Seed Studio. the configuration below:

 

SDA -- > R 4.7k  --> Vcc (5v)

SCL --> R 4.7 k --> Vcc

 

should I breakout the Pull Up resistor from Vcc to 3.3V battery? to make this code works?

 




#58440 Committing File to SD Card

Posted by Fahdil on 27 May 2014 - 07:24 PM in Netduino Plus 2 (and Netduino Plus 1)

it's an essential problem. I just wonder to buy N+2, but after read this thread....  I think twice, maybe it's ok to keep develop my project using N+  :wacko:




#56386 Dead USB, can't deploy, connect or reset...

Posted by Fahdil on 25 February 2014 - 11:36 AM in Netduino 2 (and Netduino 1)

Nothing Show up on device manager... I've using 4.2 version installed.

Yes I did, try erasing and re-flashing... and yes last time I did passed the enable boot script. so I reset it again (connecting gold pin near D0 to 3.3v). but It's the USB port not detected anymore.




#56378 Dead USB, can't deploy, connect or reset...

Posted by Fahdil on 25 February 2014 - 08:17 AM in Netduino 2 (and Netduino 1)

Update.....

My broken Netduino appears in comp management for Once...... 

After a month I left my broken NP1, today I take a bit try to plug it to my PC. Surprisingly, it's appear on comp. management. So I open my Samba and send the tinibooloader.  Successfully thought.... -_-

 

So it have to re-plug to see and ping on MFdeploy.... and Tarraaaaa it's doesn't detected anymore....

 

So I assume:

1. Somewhere in Netduino USB port maybe broken.

2. there is a remaining current for a while after plug out the usb (something like capacitive current). once this current drain out, I can detect the Netduino again for once. dunno how long.

 

hoho funny.... but I do experience this.... first time I try to re-plug it was a week after the Netduino was death, and the next 2 days. So I decide to bought the new 1. Today i give it a try with the death NP, and still happening so I post to the forum. Hope someone could solve this.

 

cheers




#55725 Automated Urban Garden

Posted by Fahdil on 29 January 2014 - 10:20 AM in Project Showcase

Good Business.... haha...

 

do you know your method so much help full for Tea Plantation. when the atmospheric temperature goes below  10-14C it will freeze the leaf. in Indonesia, when it's happen the plantation lost about 60% of normal harvest. 

 

the solution is, whenever the temperature goes below 15C(in example; need more observation), you just need to control water sprinkle above the leaf (smaller holes the better, we want the water vapor keep longer in the air.). as we know, that the water has a higher heat capacity than the air. so you can control the air temperature. :)

 

Cheers

 

 

this when science makes money.... :lol:




#55704 Dead USB, can't deploy, connect or reset...

Posted by Fahdil on 28 January 2014 - 01:07 PM in Netduino 2 (and Netduino 1)

If you plug the board into your PC while firmly holding down the pushbutton--and the blue LED does not turn off--then it is either in bootloader mode or the board is damaged. If it is bootloader mode, you'll get device enumeration via USB. If it doesn't enumerate (on any PC) in this condition, then something somewhere has is damaged :( Chris

 

it's happened to me.... I guess.... badly i dont know why it's happened. once I try to deploy my sketch, the debugger says that cant connect to netduino. I try to re-plug netduino and deploy it once again, and it's still happen. so i try to flush my netduino tarraaaa... netduino doesnt appear anymore in my hardware management.

 

My Netduino+ has damage. it force me to buy another one... the sketch deployed successfully.

 

so until now, I dunno what's the problem exactly.

 

huff :angry: ... I wish it doesnt happen ever again. :lol:




#52714 News about Visual Studio 2012 .NETMF Support ?

Posted by Fahdil on 11 September 2013 - 07:39 PM in Visual Studio

4.5 is the full framework which you cannot use.
4.3 if the latest microframework.

umm...

 

Acctually I did replacing the "microsoft.visualbasic.dll" v1.0.0.0 on NETMF4.2 with "microsoft.visualbasic.dll" V10.0.0 on Framework 4.5

 

here is my screencap...:

 

 

Posted Image

 

I didn't sure if it's OK to compile or not... I will let u know if it really work

But I just wonder, if it will cause an error later..?

 

btw, thx for the respon




#52709 News about Visual Studio 2012 .NETMF Support ?

Posted by Fahdil on 11 September 2013 - 05:55 PM in Visual Studio

Hi Carlos,


Posted Image

We're working on VS2012 support. If you'd like to get started with VS2012 now, you can do the following:

1. Install the .NET MF 4.3 SDK (from netmf.codeplex.com)
2. Install the latest Netduino 4.2 SDK (from our Downloads page)
3. Create a .NET Micro Framework "Console Application"
4. Add "SecretLabs.NETMF.Hardware.dll" and "SecretLabs.NETMF.Hardware.Netduino.dll" from the Netduino SDK directory (in Program Files (x86).

That will effectively do the same thing as the Netduino SDK templates.

You can also be able to install Visual C# 2010 Express side-by-side with VS2012, although I always install VS2010 first.

Chris

 

dear Cris,

 

Posted Image

 

is it possible to replacing that "Microsoft.VisualBasic" Versi 1.0.0.0 (see. pic) with "Microsoft.VisualBasic" library which include in framework 4.5 on "C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5Microsoft.VisualBasic.dll"

 

I found that some classes like microsoft.visualbasic.controlchars is not included on .NET MF 4.3 versa. please some advise

 

Regards




#52735 News about Visual Studio 2012 .NETMF Support ?

Posted by Fahdil on 13 September 2013 - 08:13 AM in Visual Studio

Hi Fahdil, Visual Basic compiles using VBCore for .NET MF. That enables apps which are just a few KB bigger, and eliminates the dependency on the VB runtime. As far as the VB runtime goes...if you include it in your project you'll want to use the version designed for .NET MF. It's a subset of the larger set found on the desktop, but it should be a pretty good subset. Does that help? Chris

 

Hi Chris,

 

thanks for your info, I'll keep update if i found the bug later. anyway thanks :) ...

So Glad to secretLab team... Bravo... And By the way, Netduino will be so much cool if we have more Analog Pins ehehe :D




#55698 Rain sensor

Posted by Fahdil on 28 January 2014 - 07:36 AM in General Discussion

If I were u... maybe I will try to using... resistant wire.... (cheap solution)

 

if any water falls on the cable... it will change it's resistance and you can trigger any digital I/O. I was use it as water level recorder.

 

and I found this solution on my bike fuel tank also.

 

wire the cable like this (it's 1 cable), once any water drop in the middle of string it will changes its resistance. 

---------------------------

---------------------------

---------------------------




#55695 Netduino scheduler

Posted by Fahdil on 28 January 2014 - 05:54 AM in Project Showcase

it's cool... hmm how if you want to callback action daily at 00:05 AM?

 

i just wonder to use

system.thread.timertimer _timer = new timer(callbackAction, Timespan.Zero, new Timespan(1,0,5,0)); 

but then I realize that, If i start this code on 3pm, then it will execute every 3pm instead 00:05 Am....

 

very appreciate any solution.

 

cheers




#55723 Netduino scheduler

Posted by Fahdil on 29 January 2014 - 09:44 AM in Project Showcase

Hi Giuliano de medicci...

 

share me please... hihi :P ... now I'm using standard loop by using RTC 

int currentday = 0;int today = datetime.day;while (true){if (today != currentday) // for daily action{   action;}currentday == today;if (datetime.minutes %10 > 0) //this for 10 minutes schdule.no worries to rplace it by using timer/timespan{    recordData;}else{    postData;  // this action takes about 10 - 15 secs. so I waste the rest of minutes = 10}}

so it will execute the action every day at the change of the day.

 

but if there's another way to using timer and timespan, i would love it...  :P bcoz I've using so many "if else" on the loop... 

 

cheers




#55850 MQTT for the Netduino Plus

Posted by Fahdil on 04 February 2014 - 10:01 AM in Project Showcase

I love using MQTT myself. I have my home automation system running on MQTT. It only consists of lawn irrigation and garage door controller right now. I also have a home security lab that connects 11 netduinos via MQTT. Take a look at http://cloudhomesecurity.com for details. You can find kinks to the code on the website. The mqtt library needs a lot of work though.

 

Hi Mike,

 

I saw that you used a LAN cable to connect the netduino to MQTT broker(or maybe internet). Is it possible to use MQTT via GSM/GPRS shield? I dont have idea what MQTT exactly is? if I want to measure an environment in the remote site, which is no 3G connection. but I want to use M2M protocol, what I have to prepare to learn.?

 

Here is My desired topology:

 

Netduino+ --> GSM/GPRS shield .......?....... ----> GSM modem (wavecom etc) --->PC

 

 

can i comunicate between those GSM modem via MQTT? or M2M? is there any special requirements?

*still googling about it....

 

cheers




#56387 MQTT for the Netduino Plus

Posted by Fahdil on 25 February 2014 - 12:06 PM in Project Showcase

So as long as... My Netduino has an IP. it is possible to try.hmm

 

and about the broker, do we need a contract with them, or it's just a free service?

 

thanks anyway for your respon




#52651 Serial Port Problem

Posted by Fahdil on 08 September 2013 - 09:38 PM in Netduino 2 (and Netduino 1)

I'm attempting to use both serial ports at the same time and have run into a problem. I've narrowed the problem to a single line of code but don't know what to do about it. In a test program I'm using COM1 to listen for a string from a PC and turn the LED on or off. This works fine while I'm still connected to the Netduino through the USB but when I disconnect the USB and power up through power connector it fails. I've attached a small test program that illustrates the problem (along with a little VB app to test it). I'm using an original Netduino (not the plus or mini) and I'm using firmware version 4.1.0.5.

 

Oh God Thanks,

 

 

Love this thread.... so much helpful... thanks... it's really  show me how to communicate to my GSMshield Icomsat v1.1...  i need to convert your code to Vb Language (it's the only Programming Language I understand). I planed to use netduino as weather station and send its data trought GSMsheild. Formerly I'm using arduino uno board, but since netduino has more option to develop, so I decide to learn netduino.

thanks to all of you guys. here is your code on vb lnguage

Imports SystemImports System.TextImports System.ThreadingImports System.IO.PortsImports Microsoft.VisualBasic.ConstantsImports Microsoft.SPOTImports Microsoft.SPOT.HardwareImports SecretLabs.NETMF.HardwareImports SecretLabs.NETMF.Hardware.NetduinoPlusNamespace Uart    Public Class Com_UART        Private Shared GSM_UART As SerialPort        Private Shared OnboardLed As OutputPort        Private Shared DataIn As String        Public Shared Sub Main()            ' write your code here            OnboardLed = New OutputPort(Pins.ONBOARD_LED, False)            GSM_UART = New SerialPort("COM1", 9600, Parity.None, 8, StopBits.One)            AddHandler GSM_UART.DataReceived, New SerialDataReceivedEventHandler(AddressOf RecieveData)            If GSM_UART.IsOpen = False Then                GSM_UART.Open()                Debug.Print("Port Opening" & " : at baudRate= " & GSM_UART.BaudRate)            Else                Debug.Print("Port is ready...")            End If            Thread.Sleep(1000)            Dim bytesTosend As Byte() = Encoding.UTF8.GetBytes("AT+CMGF=1" & vbCr)            Debug.Print("Send port : AT+CMGF=1")            GSM_UART.Write(bytesTosend, 0, bytesTosend.Length)            Debug.Print("Port is writing...")            Thread.Sleep(Timeout.Infinite)        End Sub        Private Shared Sub RecieveData(ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs)            Dim Length As Integer = GSM_UART.BytesToRead            Dim bufferData As Byte() = New Byte(Length - 1) {}            GSM_UART.Read(bufferData, 0, Length)            DataIn += New String(Encoding.UTF8.GetChars(bufferData))            If DataIn.IndexOf(vbLf) >= 0 Then                Debug.Print("Command: " & DataIn)                DataIn = DataIn.Trim()          ' Get rid of the line feed                If DataIn <> "" Then                    OnboardLed.Write(state:=True)                    Debug.Print(DataIn)                End If                If DataIn = "" Then                    OnboardLed.Write(state:=False)                    Debug.Print("Command should be Cleared :" & DataIn)                End If                ' Clear the string for the next transmission            End If        End Sub    End ClassEnd Namespace

I wish to share my final code later....

 

 

best regards




#55760 I2C + AnalogInput = Messed up

Posted by Fahdil on 31 January 2014 - 06:28 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Guys,

 

I'm working with DS1307... it's attached on A4/A5. time reading is great. but something happen to my analog pin 0 -3. All those Analog pins read 3.3V.

 

when I deploy a program to read Analog pins (without RTC) it goes fine. Once I attached the RTC all pins goes to 3.3 v..

 

what should I do?




#55762 I2C + AnalogInput = Messed up

Posted by Fahdil on 31 January 2014 - 09:05 AM in Netduino Plus 2 (and Netduino Plus 1)

Done...

 

this my Note.

 

1. Power RTC to 5v, but pull up SDA/SCL to 3.3v (here I'm using 4.7k and time readings work fine). as suggested by mastronic.

2. At Any rest analog (A0-A3), it will have 1.5v before declared to use ( as analoginput ) and 0mv after declaration...

 

But I dont have any explaination, why is it happen? as Crish mentioned above that, once A4/A5 is declared as I2c device, there's no more connection or relation to other analog pins. then why the pull up to 5v affecting them? :wacko:

 

anyway... my RTC and analog input works fine now.  :rolleyes: but very appreciate for any detail explaination (I've used to write it on to my thesis) :P

 

Cheers :lol:




#52605 Weird problem powering up GSM shield

Posted by Fahdil on 06 September 2013 - 04:13 AM in Netduino 2 (and Netduino 1)

Thank you very much. Very insightful  :)

Yes I did pretty much get to grips with the SIM900 now. I'm getting round the power-up problem using a relay as mentionedd before. It is very cumbersome, and wastes a GPIO pin, but it will do for now.

 

I also managed to hit the USB power limit finally. Determined to find the limit, I dropped in a shift register with LEDs attached ... once I got to 8 LEDs on the SIM900 wouldn't power on any more  B)

Hi NightHawk

 

I do use Icomsat V1.1 and Netduino too...  could you please share the code how to communicate with it. Do you use serial communication on it?

so... do you turn it off and on automatically to safe the power?




#55761 I2C + AnalogInput = Messed up

Posted by Fahdil on 31 January 2014 - 07:14 AM in Netduino Plus 2 (and Netduino Plus 1)

Add details,

protected static SecretLabs.NETMF.Hardware.AnalogInput A0 = new SecretLabs.NETMF.Hardware.AnalogInput(Pins.GPIO_PIN_A0);

when I delete this declaration, All analog pins (Analog 0-3, A4/A5 use to I2C) goes normal, reads 0.45mv.  but when I use this code, with RTC pluged all the rest Analog in reads become 3.3V. Please anyone suggest a solution....





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.