Jump to content

Search the Community

Showing results for tags 'analogread()'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 2 results

  1. Hi, So I simply wanted to try out my new CC3220SF using Energia. Unfortunately I noticed that I always get the wrong readings from the pin. I used a voltage divider to ensure the voltage connected to the analog pin is no more than 1.3V. For that I simply took three 1k Ohm resistors and put them in series then connect a parallel circuit from the last resistor to the potentiometer. I also have ensure that the jumper powering the opAmp to enable the ADC on board is populated. I simply used the example code then changed the pin number. I also already have tested changing all the pin number but it all comes down to nothing. But to simplify your work to help me, here's the code nonetheless, void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); // msp430g2231 must use 4800 } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin A3: int sensorValue = analogRead(A0); //I tried A0,A1,A2,A3 already // print out the value you read: Serial.println(sensorValue); delay(1); // delay in between reads for stability } And here is my setup: LaunchPad board name and version: CC3220S_LAUNCHXL (Rev-A) Energia IDE version: 1.8.11E23 Board package version: 5.6.2 OS name and version: Windows 10 Thanks, Razi Hashim
  2. Hey guys! So I have 2 msp430g2553 launchpads and I am trying to build a IR line of sight communication system. Basically I have a IR led and IR photo transistor on both the launchpads including a visible led. So what i want to do is: Press the push button on one launchpad The IR signal from that launchpad goes to launchpad2 The visible led on launchpad2 lights up And vice versa So far I have created a program on Energia that turns the led on after pressing and releasing the push button. Then turns it off after pressing and releasing it again. But now I am stuck. I don't know how to use the analogRead() function in order to sense when the photodiode is illuminated and through that turning on the visible led on the protoboard.
×
×
  • Create New...