43oh

# BruteForce

Members

5

1. ## Transmitting Serial data (ASCII) received from the computer to external LED circuit

Thanks everyone. Just to test whether the logic is working fine, I wrote this sample piece of code: void setup() { // put your setup code here, to run once: Serial.begin(4800); } void loop() { // put your main code here, to run repeatedly: char c = 'A'; for (int i = 7; i >= 0; --i) { Serial.println( (c & (1 << i)) ? '1' : '0' ); } Serial.print("\n"); delay(1000); } I noticed one interesting thing- I can only see "readable" output when the baud rate is set to 9600. With baud rate less than that, i.e., 4800 or 1200, I see some gibberis
2. ## Blinking LED in a random interval

Thank you very much! Thanks a lot! I really appreciate your support.
3. ## Blinking LED in a random interval

Thank you very much. At first, I would apologize for my incomplete post. I did try some code to get out of this loop, those are commented. What I posted here is just to keep running for the same input. I was stuck on getting out of the loop part. I am gonna try your suggestion and let you know about the result. Thanks again... I really appreciate.
4. ## Blinking LED in a random interval

What I am trying to do is, making a PIN switch between its states (HIGH and LOW) with a random interval. My experiment outline is: There are two inputs from user, 1 and 2. An user input of 1 makes the LED to blink (or PIN to switch between HIGH and LOW) with a random interval between (500 to 1000) ms. If the user input is 2, the random interval becomes (100 to 500) ms. The system is should always listening to the user input, and as soon as it gets a new input, it adjusts the random delay accordingly. For example, the user gives an input of 1. The MSP430 chip generates a random number
5. ## Transmitting Serial data (ASCII) received from the computer to external LED circuit

Hi there! I am not very much experienced in MSP430 platform. I am kind of stuck in a problem. Let me describe my project goal first. What I want to do is: 1) I will input a letter (suppose "K") via serial monitor to my MSP430G2553, 2) Upon receiving the letter, the launchpad will vary the voltage level a GPIO PIN (let's assume P1.4) based on the input, which is connected to an LED, 3) As the LED blinks based on the input bit pattern (K, ASCII value = 75, Binary equivalent = 01001011), one light dependent resistor will read this variation, which is connected to another Launchpad, and stores
×
• Blog

• #### Activity

×
• Create New...