I'm using cc2350 kit to build a WSN to monitor wind farms. I have 3 fans and I'm supposed to build the network on that small scale and control the fans. do stuff like calculating wind speed, direction, speed of the rotation of the fan etc. But the cc2350 kit only has temperature and battery level sensors which are not enough. I have successfully built the network and all, and I've built a circuit that sees whether a fan is working or not. All i want is to send the output of that circuit to the BB which will then send it through out the network to my pc so i can do the monitoring and controlling.. I have read alot about using the pins on the BB but still i cant get it straight. I mean, do i connect my circuit to the BB by some sort of small wires attaching them to the pins of the BB, or there is some sort of another piece of hardware that can do the connection for me.
The CC2530 sensor demo (http://www.ti.com/litv/zip/swrc147b) application uses the CC2530's ADC to read its on-chip temperature sensor (see http://www.ti.com/litv/pdf/swru191b, section 12.2). This is in the readTemp.c routine, and basically is set up through the ATEST, TR0, ADCIF, and ADCCON3 registers.
You'll want to set up the ADC to instead use the AIN0..AIN7 input pins instead (these are the P0.0 through P0.7 pins). These are accessible on the SmartRF05BB board connectors.
Thanks man for this, this really explains the software part which I needed to know. But the hardware part, I mean i have a circuit that gives output 1 if the fan is working and 0 if not, how am i supposed to make its output to be the input to the BB on any pin. How to do the connection
My submission date is a couple of weeks away and i still gotta build more circuits that calculate the speed of the rotation of the fan, and the direction of the air.
I just want to ask 1 more question, can i do the same operation but in the opposite way, i mean i can send a certain value to the external circuits through the pins on BB. Like if i have a circuit that turns the fan on or off, i can do some sort of programming that when it has an input 0, it turns the fan off (for example), and I feed it that input through the pins
Thanks alot i really appreciate it
The connections are in http://www.ti.com/lit/pdf/swru209, appendix A. For example, if you wanted to use P0.0 as a digital input, this goes to P1, pin 11 on the EM board. On the SmartRF05BB, this is called EM_P1_11 on the P1 connector, which also goes to P5, pin 12 ("I/O header B"). That's where you'd attach the signal. P0.0 would then have to be programmed as a digital input. See http://www.ti.com/litv/pdf/swru191b for details on the programming (chapter 7). Chapter 7 also describes how you can set the pins, such as P0.0, be digital outputs.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.