• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoRun Linker_hall on pcDuino
Previous Next

Run Linker_hall on pcDuino

Posted by: admin , February 27, 2014

[vc_row][vc_column][vc_column_text]The Hall effect of semiconductor is much better than the metal. Many Hall element is come out of this phenomenon and widely used in automatic industry technology, testing technology and information processing , etc.Hall effect is the basic method to study the performance of semiconductor. Hall coefficient was measured based on Hall effect experiment, and can judge the conduction type,carrier concentration, carrier mobility and other important parameters of semiconductor materials.

Linker_hall

[/vc_column_text][vc_tour][vc_tab title=”Wiring Diagram” tab_id=”1393470381-1-83″][vc_column_text]QQ图片20140226200611

VCC – >  pcDuino  VCC 3.3V

GND – >   pcDuino  GND

RX     – > pcDuino Dx(x=1, 2 ,3 … 13,the same as the definition in the routine code)  [/vc_column_text][/vc_tab][vc_tab title=”Test code” tab_id=”1393470381-2-57″][vc_column_text]

#include <core.h>

#define Sensor_Pin 4

boolean HistoryStatus;

void setup()
{

  pinMode(Sensor_Pin, INPUT);
  HistoryStatus = digitalRead(Sensor_Pin);
  printf("Status:%sn",HistoryStatus?"TRUE":"FALSE");
}

void loop()
{

     if(digitalRead(Sensor_Pin) != HistoryStatus)
     {
      printf("Status changed!---Status:%sn",HistoryStatus?"TRUE":"FALSE");
       HistoryStatus = !HistoryStatus;   
     }

}

[/vc_column_text][/vc_tab][vc_tab title=”Test result” tab_id=”1393528168043-2-3″][vc_column_text][/vc_column_text][vc_column_text]

QQ图片20140226204757

QQ图片20140226204915

QQ图片20140226204922

(Note: Use magnet’s N class to close the front of sensor )

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: pcDuino

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors