i2c does not have/need a cs (chipselect) pin. it access the device with an address.
maybe the pin is used for something else.
![]() |
  | |||||||||||||
![]() |
|
![]() |
||||||||||||
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.
NooM's ContentThere have been 301 items by NooM (Search limited from 04-July 24) #45964 Adafruit NFC shield
i2c does not have/need a cs (chipselect) pin. it access the device with an address. maybe the pin is used for something else. #45509 Adafruit NFC shield
hm iam wondering why you bitbang the data, and not use the normal spi/i2c classes, that would be a lot faster and way less code, less errors and such. i dont have such a device so i cant try, but except some really exotic devices all is kinda "standard" that just works with netduino - ofc the right code for accessing the right registers at the right time is still needed. #54268 STM32F4 mini
well if you wanna use the netduino formware you have to look on wich pins is the usb port connected (important for flashing programs) and you have to use a 25mhz crystal (iirc)
yes i meant the link you posted - this port needs a 8mhz crystal
you can change the crystal needed, but you have to recompile the netmf-firmware
on a sidenote: on mine i wanted the sdio interface and a micro sd card, so basic stamp wouldnt fit, in a breadboard it still leave 2 pins free each side #54252 STM32F4 mini
i designed one, sadly i placed the sd card slot one, so i have to wait for the new pcb's where i fixed this..
https://www.dropbox....board_front.png https://www.dropbox...._board_back.png
its a f405, was quite simple actually it can run the netmf for stm32 port in codeplex. (iam using it with native code tho)
edit: oh and theres the cerb40 allready aviable. #45446 Dead USB, can't deploy, connect or reset...
sry i have no idea what todo, but ping and program running tells me its not damaged. #45425 Dead USB, can't deploy, connect or reset...
you sure its damaged? netduino can survice 12v, the regulator is actually rated much higher (but will get a heat problem when you draw too much current) #49003 Netduino Mini CD-player - now with video :-)
very nice! #46113 433MHz / 2.4GHz communications with Netduino/Netduino Plus
the nRF24L01+ work very well, iam using them. on codeplex is a library for that device. communication arduino <> netduino via the nrf i didnt got to work - i think its of the codebase, so its hard to find out the right channel and addresses for each. theoretically it would work.
the 433 i suggest not to use, thats illegal in many countries, and there is also a lot of noise, and afaik you have to filter the noise out yourself, while the nrf makes this for you. #48828 reading data through a serial port on netduino plus 2
try:
SerialPort mySerialPort = new SerialPort("COM1", 9600);
remove all the other stuff like mySerialPort.Parity (looks like its standard settings)
also add mySerialPort.Open();
and remove the Thread.Sleep(Timeout.Infinite); from the event. instead add it after mySerialPort.Open(); #45063 Powering the Mini with 3.7v
yes that works.
iam using a LM2577 (from ebay, very cheapo) to step up to 5v for powering the mini (i can be powered by regulated 5v) .. than iam using a LM2596 to step it down to 3.3v for all rails/devices.
iam also using bluetooth. you may have a look at those: http://www.ebay.at/i...=item3a7423a9cd
the sparkfun ones seem quite pricy #45361 Safely ejecting SD card (and other problems)
you do not use Cpu.Pins for netduino -.-
netduino has the card detect implemented, and it even throws an interrupt when you enter a card (maybe, i guess) also when you remove it. #45420 Safely ejecting SD card (and other problems)
it gives you some knowledge
since hanzibal allready told you about the card-detect pin ...
the try/catch approach you mentioned may work, but i think its better to check if a sd card is in (set a boolean with the card-detect event, maybe there is allready one?) and only write data when its actually in. #45373 Safely ejecting SD card (and other problems)
first: yes thats only for the plus and plus2. than: i meant its not Cpu.Pins its just Pins enum.
also, since this is in the plus/plus2 part of the board, i was talking about that. #51987 Humidity and Temperature Sensor Driver HIH6130 I2C
wow 30$
a dht22 is like 3$ yeah iced is right, the support of dht for netduino is uncool, but still possible.
suggestion: remove the sensor.enterCommandMode(); and sensor.exitCommandMode(true); for the user. make it automatically if you call the functions that wants command mode. #46047 Is there a Watchdog breakout out there?
seriously thats a very complex watchdog i think.
iam using a attiny85 for that, and its just a few lines of code.
and for the netduino side its just setting a pin low and high. there might be even simpler solutions (real watchdog ic's) - wich only needs to pull a pin low and high. #46226 Is there a Watchdog breakout out there?
sry i dont have the code anymore, but its very very simple. i used the arduino ide and language to programm the tiny.
its like that: setup one pin as input, one as output, pullup enabled. (let it run with 3.3v, 1mhz internal oscillator)
make a timer with milis() .. .. everytime the inputpin changes, make the timer a new value, the ammount is on yours (i used 1000msec) when it runs out, pull output (connected to reset) down, let it down for like 50msec, make it high again, start over (i suggest adding a 1 minute, maybe more, startup time, depending on your code, so it wount reset before the netduino is executing your code.
netduino side: just set a pin connected to the tiny high and low a value you like #51166 Netduino Plus 2, SPI not working, .NET Toolbox,
grant: you need/want a thread.sleep(timeout.infinite) after Debug.Print("done");
its unknown what happens when you "close" the main loop. #47295 Still a Serial Port Problem
now i can confirm that serial is not the most reliable, but it works quite well for me. i noticed that when i send a lot of data very fast (115200) some byte gets lost/shifted by one byte. i than implemented an packet framing, and also send the size of the packet. its very very reliable since than
id remove all the thread.sleep in your sample code and stuff the bytes into a buffer. i know you wanna work with a gsp shield, so encoding and stuff wount be of any help. #48004 How do I connect Netduino+ to a pc wireless?
if it doesent have to be ethernet, id go with a bluetooth module. they are very cheap on ebay, and its serial communication. doesent need any extra code to work.
http://forums.netdui...ss-programming/ (i not only use them for programming, nearly all my "projects" have one now, to send data from pc to the project)
//edit: sadly hey doubled in price the last few weeks #51645 HowTo address the PCF8574
hanzibal: hehe your driver looks like mine
but i have a suggestion: when you handly the interrupt like you do you get an odd number. filter it before to get wich pin actually changed
Attached Files
#51611 HowTo address the PCF8574
netmftoolbox has a driver for it also, if you read its datasheet, its a very simple ic (- but still a good one, i like its interrupt, thats makes it good for buttons and stuff) #51627 HowTo address the PCF8574
iam no teacher.
and there is so much info about this iC, i googled "pcf8574 netduino" and there are tons of helpfull samples/tutorials (the first is good, the second and 4th
your adressing is correct. its a very good and common iC for input (for output id use a 74hc595, cos its much much faster..) #52497 Netduino 2 and the Adafruit BMP085 Barometer (I2C)
it really shouldnt return 0's. if it has pullups on their board, than you dont need one.
maybe upgrade the a newer firmware version of your netduino. iirc there were i2c problems before 4.2.2.2 #52485 Netduino 2 and the Adafruit BMP085 Barometer (I2C)
your code doesent look correct. also, has your sensor pullups? if not you have to add 4.7kohm ones
ill add my classes, use them, i used it, they work.
... IC_BMP085 press; ress = new IC_BMP085(0x77);
...
void print() { String logString = "pressure: " + press.pressure + " " + "altitude: " + press.altitude.ToString("F1") + " " + "free mem: " + Debug.GC(false); Debug.Print(DateTime.Now + ": " + logString); } Attached Files
#52513 Netduino 2 and the Adafruit BMP085 Barometer (I2C)
i meant 4.2.2.2 not the 4.3 beta
| ||||||||||||||
![]() |
||||||||||||||
![]() |
|
![]() |
||||||||||||
![]() |
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ![]() |
||||||||||||
![]() |