Sige sir just inform me kung kailan sya available. Malamang kasi oorder ako ng GSM module sa inyo saka yung RF remote na 4 channels (baka meron kayong 8 channels?)
Supposed, there is an Arduino Uno Board you got on hand for free because you join the raffle promo and you are one of the lucky winner for Arduino Uno : http://www.electronicslab.ph/forum/index.php?topic=29832.msg552703;topicseen#msg552703, what is the code looks like, supposed for test, you connected the LED at Arduino board label I/O 13? D) Arduino Code
/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(13, OUTPUT); }void loop() { digitalWrite(13, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(13, LOW); // set the LED off delay(1000); // wait for a second}
ganito ba sis ang hinahanap mo?Code: [Select]/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(13, OUTPUT); }void loop() { digitalWrite(13, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(13, LOW); // set the LED off delay(1000); // wait for a second}from: http://www.arduino.cc/en/Tutorial/Blink
'This is for AT89S51 with BASCOM 8051do P1.0 = 0 'turn off led waitms 200 'wait 200 msec P1.0 = 1 'turn on led waitms 200 'wait 200 msecloop 'keep repeatingend'===========================================================the code above blink the LED connected at P1.0, the LED is connected in current sink with series 470 ohms resistor at pin 1 of AT89s51
'******************************************************************************' DR100W conCEPT - - - Power Amplifier' Heart Systems Elecronic Center [ HSEC ], Baguio City'' 1diyTEAM Project''******************************************************************************''DESCRIPTION :'this program will blink the LED connected at port 3 bit 6 (P3.6)'''Hardware Note: ----------------------------------------------HARDWARE NOTE' MCU : AT89S52 40 pins DIP (ATMEL)' Crystal : 12 MHz''' Power On_LED:' Power_On_LED > P3.6 <Port 3 bit 6>'''Filename : Blink_ledp3.6.bas' : Rev. 1.0' : october 11, 2011''Designer :' : Heart Systems - 1diyTEAM' [http://www.1diycentre.com ]''Compiler :' : BASCOM 8051 IDE 2.0.15.0 <Full Version>' http://www.mcselec.com' Thanks to Mark Alberts for the permission to use BASCOM 8051' Demo version to share and distribute to our diy Learners''Level : Shareware <Seminar / uC Workshop 201> :' Simple Micro Controller Programming - Part - 3' DR100W conCEPT''------------------------------------------------------- COMPILER Directives$regfile = "8052.dat"'Ang Compiler directive na ito ay para utusan ang Compiler na gamitin ang'Standard 8052 Core'--------------------------------------------------------- NAMING VARIABLES''Ang mga sumusunod na declarations ay para mas madaling tandaan ang pangalan'ng mga Ports ayon sa function sa program'LED Power_LED Alias P3.6'----------------------------------------------------------------INITAILIZATION'Ang susunod na declaration ay para sa initialization ng values ng mga'VariablesConst Delayed = 200 '200 mesec delay'******************************************************************************' MAIN PROGRAM START'******************************************************************************Do Power_LED =0 'put P3.6 to logic zero Waitms Delayed 'Have a delay so the LED can see as Lighted Power_LED =1 'put P3.6 to logic one Waitms Delayed 'Have a delay so the LED can see as Turned OffLoop'******************************************************************************' END of PROGRAM'******************************************************************************End
/******************************************************************************* DR100W conCEPT | Heart Systems Electronic Center [ HSEC ], Baguio City | | DR100W 1diyTEAM |*******************************************************************************DESCRIPTION : Lear How To Blink the LED connected at P3.6 of AT89S51/52*'******************************************************************************Romel L. Emperado 1diyTEAM - Mindanao Nov. 15, 2011 '******************************************************************************' HARDWARE NOTE ' MCU : AT89S52/51 40 pins DIL ' Crystal : 12 MHz '******************************************************************************Software IDE : KEIL V4LINK: http://www.keil.com/PROGRAM NAME: LightALedProgram.cTARGET BOARD : NE2ssLink: http://www.1diycentre.com/product_profile_security.htmLEVEL : Shareware and Courseware****************************************************************************** START of PROGRAM******************************************************************************/#include <REG51.H> // include 8051 register file/* Function Prototypes */void delayus(unsigned char delay); void delayms(unsigned char delay);sbit blinkingled = P3^6; // decleare a variable type sbit for P3.6void main() //the main function{ blinkingled = 0; //Clear port and initialized as output while(1) //super loop { blinkingled = ~blinkingled; //Blink the LED delayms(1000); //Produce approx 1s delay } }/* Simple Software Delay Function to Produce delay*/void delayus(unsigned char delay){ while(delay--);}void delayms(unsigned char delay){ while(delay--) delayus(149);}/* End of Simple Software Delay *//****************************************************************************** END of PROGRAM******************************************************************************/
'******************************************************************************' DR100W conCEPT - - - Power Amplifier' Heart Systems Elecronic Center [ HSEC ], Baguio City'' 1diyTEAM Project''******************************************************************************''DESCRIPTION :'This program will let the User to pressed the Power ON/OFF Key and it will'Light / Turn OFF the LED)'' LED ON = Standby Mode' LEd OFF = Active Mode'''Hardware Note: ----------------------------------------------HARDWARE NOTE' MCU : AT89S52 40 pins DIP (ATMEL)' Crystal : 12 MHz''' Power On_LED:' Power_On_LED > P3.6 <Port 3 bit 6>''' Power_On_Off_Switch:' Power_On_Off_Switch > P3.3 <Port 3 bit 3>'''Filename : Tact_Switch.bas' : Rev. 1.0' : october 11, 2011''Designer :' : Heart Systems - 1diyTEAM' [http://www.1diycentre.com ]''' TARGET Board :'' : Smart-H ISP Board' Simply for testing''Compiler :' : BASCOM 8051 IDE 2.0.15.0 <Full Version>' http://www.mcselec.com' Thanks to Mark Alberts for the permission to use BASCOM 8051' Demo version to share and distribute to our diy Learners''Level : Shareware <Seminar / uC Workshop 201> :' Simple Micro Controller Programming - Part - 3' DR100W conCEPT''------------------------------------------------------- COMPILER Directives$regfile = "8052.dat"'Ang Compiler directive na ito ay para utusan ang Compiler na gamitin ang'Standard 8052 Core'--------------------------------------------------------- CONFIGURATIONS''Ang mga sumusunod na declarations ay para mas madaling tandaan ang pangalan'ng mga Ports ayon sa function sa program'--------------------------------------------------------- NAMING VARIABLES''Ang mga sumusunod na declarations ay para mas madaling tandaan ang pangalan'ng mga Ports ayon sa function sa program'LED Power_led Alias P3.6'Tact Switch Power_on_off_Switch Alias P3.3'******************************************************************************' MAIN PROGRAM START'****************************************************************************** 'I will Turn ON the Power On/OFF LED upon Power ON, this will indicate 'that the system by default is on the Standby Mode Reset Power_LED '<<<I used Reset Power_LED instead of Power_LED = 0>> '<<which is the same effect>>>'The following code, checking ang tact switch kung may pumindot, kung may'pumindot sa Tact switch, tatakbo ito sa label na Power_ON_LED_Status Do Debounce Power_on_off_Switch, 0, Power_ON_LED_Status, Sub Loop'The code will check the status of the Power_LED, if it is lit, it turned off'If it is turned off, it will lit, Power_ON_LED_Status: If Power_LED = 0 then Power_LED =1 'Turn OFF the LED, system is Active Mode Else Power_LED = 0 'Turn ON the LED, system is Standby Mode End If Return'******************************************************************************' END of PROGRAM'******************************************************************************End
'******************************************************************************' DR100W conCEPT - - - Power Amplifier' Heart Systems Elecronic Center [ HSEC ], Baguio City'' 1diyTEAM Project''******************************************************************************''DESCRIPTION :'this program will let the User to pressed the Power ON/OFF Key and it will'Light / Turn OFF the LED. Everytime the User pressed the Power ON/OFF Key,'The buzzer will emit "Beep"' LED ON = Standby Mode' LEd OFF = Active Mode'''Hardware Note: ----------------------------------------------HARDWARE NOTE' MCU : AT89S52 40 pins DIP (ATMEL)' Crystal : 12 MHz''' Power On_LED:' Power_On_LED > P3.6 <Port 3 bit 6>''' Power_On_Off_Switch:' Power_On_Off_Switch > P3.3 <Port 3 bit 3>''' Buzzer:' Buzzer > P2.2 <Port 2 bit 2>'''Filename : Tact_Switch_Put_LED_Status_Subroutine.bas' : Rev. 1.0' : october 11, 2011''Designer :' : Heart Systems - 1diyTEAM' [http://www.1diycentre.com ]''' TARGET Board :' : NE2ss - SHSP' : http://www.1diycentre.com/product_profile_security.htm''Compiler :' : BASCOM 8051 IDE 2.0.15.0 <Full Version>' http://www.mcselec.com' Thanks to Mark Alberts for the permission to use BASCOM 8051' Demo version to share and distribute to our diy Learners''Level : Shareware <Seminar / uC Workshop 201> :' Simple Micro Controller Programming - Part - 3' DR100W conCEPT''------------------------------------------------------- COMPILER Directives$regfile = "8052.dat"'Ang Compiler directive na ito ay para utusan ang Compiler na gamitin ang'Standard 8052 Core'--------------------------------------------------------- CONFIGURATIONS''Ang mga sumusunod na declarations ay para mas madaling tandaan ang pangalan'ng mga Ports ayon sa function sa program'--------------------------------------------------------- NAMING VARIABLES''Ang mga sumusunod na declarations ay para mas madaling tandaan ang pangalan'ng mga Ports ayon sa function sa program'LED Power_led Alias P3.6'Tact Switch Power_on_off_Switch Alias P3.3'Buzzer Buzzer Alias P2.2'This jump instruction to the MAIN PROGRAM will "skip" the Subroutine to execute'You do not actually need the Subroutine now, it is the MAIN Program'that will call the SubroutineGoto START_PROGRAM'******************************************************************************' SUBROUTINE / FUNCTIONS'******************************************************************************Declare Sub Keypressed_Tone '---------------------------------Keypressed_ToneSub Keypressed_Tone Sound Buzzer , 200 , 100 'duration = 200, Frequency = 100 Set Buzzer 'this instruction is inserted to make 'it sure that buzzer port will end in 'logic 1 so as not to consume power 'when P2.2 port end in logic 0, as due 'to the connection of current SinkEnd SubPower_ON_LED_Status: '------------------------------------- Power On/OFF LED'The code will check the status of the Power_LED, if it is lit, it turned off'If it is turned off, it will lit,''The Keypressed_Tone instruction will Sound the Buzzer Keypressed_Tone If Power_LED = 0 then Power_LED =1 'Turn OFF the LED, system is Active Mode Else Power_LED = 0 'Turn ON the LED, system is Standby Mode End If Return'******************************************************************************' MAIN PROGRAM START'******************************************************************************START_PROGRAM: 'I will Turn ON the Power On/OFF LED upon Power ON, this will indicate 'that the system by default is on the Standby Mode Reset Power_LED '<<<I used Reset Power_LED instead of Power_LED = 0>> '<<which is the same effect>>>'The following code, checking ang tact switch kung may pumindot, kung may'pumindot sa Tact switch, tatakbo ito sa label na Power_ON_LED_Status doon'sa Subroutine Do Debounce Power_on_off_Switch, 0, Power_ON_LED_Status, Sub Loop'******************************************************************************' END of PROGRAM'******************************************************************************End
Hu hu hu kailan ko kaya masisimulan ito. Sir isama nyo na sa package ko. he he he
i-proto muna lang sis sa univ.pcb, hehehehe, magastos daw kasi mayroon bagong tsik.