element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Sinusstufen-Zähler mit einen NXP LPC1768
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Anonymous-342052
  • Date Created: 13 May 2015 8:00 AM Date Created
  • Views 371 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended

Sinusstufen-Zähler mit einen NXP LPC1768

Anonymous-342052
Anonymous-342052
13 May 2015

Hallo zusammen,

 

habe mich ein wenig mit dem LPC1768 beschäftigt und einen kleinen Sinusstufen Zähler mit dem ARM mbed programmiert. Mit einem LCD wird die Anzahl der Stufen auf einem Display dargestellt. Das Display ist auch verbunden mit dem LPC1768. Es gibt vorgefertigte Libraries auf der Programmieroberfläche von mbed für das LCD Modul. Den Code habe ich in main.cpp ( C++)  hinzugefügt :

 

 

#include “TextLCD.h”

 

 

 

TextLCD lcd(p19, p20, p21, p22, p23, p24);

 

AnalogOut Aout(p18);

 

float i;

 

int main() {

 

     lcd.locate(0,0);

 

     lcd.printf(“Stufenzaehler”);

 

          while(1)  {

 

                for (i=0;i<1;i=i+0.01)  {

 

                Aout=i;

 

                 lcd.locate(3,1);

 

                 lcd.printf(“%1.2f V”, i*0.3);

 

                 wait(0.05);

 

                 }

 

          for (i=1;i>0;i=i-0.01) {

 

          Aout=i;

 

          lcd.locate(3,1);

 

          lcd.printf(“%1.2f V”, i*0.3);

 

          wait(0.05);

 

          }

 

     }

 

}

 

 

Wie das ganze ausssieht zeige ich in einem kleinen Video. Viel Spass

Attachments:
You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube