Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Background

I have been looking at different microcontrollers lately, comparing them, seeing what suits my needs most. I am a computer science student wanting to have a go at my own personal project. I am interested in collecting data from different bodies of water and believe that dropping microcontrollers with multiple sensors attached would be the best way about this.

Hardware

Microcontroller -

The microcontroller I have been looking at today is the 16-bit PIC24FJ64GB410 (http://www.microchip.com/wwwproducts/en/PIC24FJ64GB410), this seems like a solid MCU with 4 SPI's, 6 UART's and 3 I2C's digital communication peripherals.

Sensors -

The sensors I am thinking of using for this device will measure the temperature, salinity (salt concentration), turbidity (cloudiness) and pressure. I have looked at the Temperature Sensor – MCP9808-E/MS and the Salinity Sensor – ML66m.

Question

I came here for some knowledge into this area as I have not messed around with microcontrollers in a long while. What is peoples thoughts on this, am I heading in the right direction?

share|improve this question

closed as too broad by Scott Seidman, tcrosley, Eugene Sh., Robherc KV5ROB, Daniel Grillo Mar 8 at 17:12

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
I think you need to ask a specific question. As it stands, your query is rather broad and risks getting downvoted and/or closed as off-topic. Read the help before posting. – Roger Rowland Mar 8 at 15:48
    
If your project involves collecting data from sensors, then buying a controller, a few sensors, and hooking them up sounds an excellent way to learn. Go for it! – Neil_UK Mar 8 at 15:59
    
I thought so too Neil_UK, even though it may not be so original its a good starting point. Do the sensors I have chosen look alright to you in your opinion? – RushFan2112 Mar 8 at 16:40
up vote 2 down vote accepted

Broad question, leads to a broad answer. Some things to think about (lessons learnt from my post grad days, doing wireless sensor networks):

  1. Have you looked at the Arduino platform, there are many shields you can get that are just "plug and play". When your a bit more confident you could make up your own board. Cheap Chinese replicas are available (this opensource hardware after all) off sites such as ebay, gearbest - if you don't mind waiting.
  2. Waterproofing - electronics and water don't mix (obviously), so a good water tight case and perhaps look at some kind of potting compound to protect the electronics.
  3. Storing - you will need something to store the data on while your away getting on with life. So perhaps an SD card shield to buffer the sensor data between data downloads.
  4. Getting the data - you could ether anchor the sensor node to something and retrieve the node later? taking out the SD card and downloading the data manually. Although you might damage the waterproofing in the process.
  5. Wireless data collection - perhaps look into bluetooth, WiFi, Zigbee? The first two are cheap and easy to get modules for Arduino... Zigbee is what I used for low power consumption, but it is relatively quite a bit more expensive. Potential issue here is Radio transmission through water? Not sure about that one? Another option for underwater is sonar. There was an MIT wireless sensor project that used sonar to transmit data along water pipes.
  6. Power - how are you going to power this? Lithium battery packs seem to be the way to go if you can. This would provide a relatively long lasting power source. I'd also recommend a voltage regulator, as we had issues with strange sensor values when the voltage reduced at the end of the battery life. The Micro (MSP430) could still run and transmit sensor values over ZigBee, and yet the sensor didn't have enough voltage to run correctly.
  7. Digital filtering - a digital filter is easy to implement, consider an EWMA (exponentially waited moving average). It's simple to implement (see wikipedia) and does the job for most things. If you want anything more complex, see Kalman filter. But really I'd recommend starting out simple and making it more complex only if you have to.
  8. Data storage format - if you don't have much storage space and yet you still want a reasonable sample rate. Perhaps think about using a high-ish sample rate and then storing the filtered sensor values ONLY when they deviate from the last stored value by a chosen value. I used this method in my postgrad work and significantly reduced the data storage/transmission needs (I'm taking 99% reduction - depending on the signal).

Hope this gets you started...

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.