This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

external hardware connected to the bb cc2530

Other Parts Discussed in Thread: CC2530

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.

  • Omar,

    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

  • Omar,

    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. 

  • sir,

    the link that yo have provided http://www.ti.com/litv/pdf/swru191b  seems to have expired. can you please upload the file. also i need the schematics for the battery board.

  • Try  http://www.ti.com/lit/swru191 

    The schematic  for the battery board can be found if you see in the following thread

    http://e2e.ti.com/support/wireless_connectivity/f/155/t/15985.aspx