Skip to content

9. Embedded programming

Assignment

Please note documentation is incomplete and will be updated ASAP

Group Assignment

  • compare the performance and development workflows for other architectures

Individual Assignment read the data sheet for your microcontroller and use your programmer to program your board to do something

  • extra credit: try other programming languages and development environments

Tools Used at 3DEXPERIENCE Lab at Dassault Systèmes

Software

Materials

Group Assignment

Compare the performance and development workflows for other architectures

SPACE HOLDER ADD IMAGES

Individual Assignment

Read the data sheet for your microcontroller and use your programmer to program your board to do something

Code

Program 1: HC-SR501_PIR_Motion_Sensor_Module
int ledPin = 13;
int pirPin = 9;
int val = 0;
void setup()
{
  pinMode(ledPin, OUTPUT);
  pinMode(pirPin, INPUT);
}
void loop()
{
  val = digitalRead(pirPin);
  digitalWrite(ledPin, val);

if (val ==0)
  digitalWrite(ledPin, LOW);
  delay (500);
}

SPACE HOLDER IMAGES

What happened?

On Thursday, March 17
On Thursday, March 31

Design Files


Last update: March 30, 2022