(editor’s note: Intrigued by the problem? Have a similar challenge? Have a question or another solution? Then click the “Read more” link and follow the conversation on EDAboard.com or log in to EDAboard and participate in the microcontroller forum thread.)
Internal oscillator configuration in PIC10F320 – I want to use the internal oscillator of a PIC10F320. I am using MikrocPro. As suggested in the datasheet, I configured OSCCON register for 16Mhz internal oscillator operation, cleared ‘FOSC’ bit in configuration word in edit project setting and just toggled a port pin in the timer interrupt. I checked it on a scope and it is showing a frequency of 14.674 Hz, but it should be 15Khz. Read more
8051 C program for interfacing with GPS and GSM – I am newbie in 8051 microcontroller coding. I need to get latitude and longitude from a GPS device sending them through (GSM sim9000) SMS to another mobile. I searched many ways for finding the code but didn’t get the relavent code I expected. Can anyone provide the relavent code or links? Read more
How can I generate delay in microseconds of any value for PIC18F4550? – I am trying to generate delay of variable length using the delay function in MPLAB X IDE for PIC18F4550 with Xtal frequency of 20 MHz. Basically, I am trying to generate delay of value which will be given as a parameter to delay_us function such as, delay_us(10) function. Read more
Microcontroller as potentiometer and data storage device – I have an Arduino nano and I want to read data from a potentiometer and store it and use it on button press. I also want to set uc (Arduino nano) as a potentiometer. I know how to get the PWM signal but I want different voltages as I write. Read more
ULN2803 Stepper motor – I have a problem with my stepper motor and ULN2803. I interfaced a bipolar stepper motor through ULN2803 to PIC18F4550, I coded it to run the motor clockwise. It works on simulation but not on hardware. Why? Read more
Guidance for my Arduino networking – I want to make a wireless connection project that has a star network or point-to-multi-point. I want to make it with Arduino for agricultural purposes and for a distance of about of 3500 meters. I have 20 slave nodes and 1 Master. Is NRF24L01 module suitable for this project? Read more
Ultrasonic sensor HC-SR04 always returns 0 cm – I am trying to interface the ultrasonic sensor HC-SR04 with Arduino. What is bothering me is that it always returns 0 cm. I did search online and many people are facing the same problem. They are just uploading new complex codes to solve the problem and no one has provided the reason behind the sensors behaving this way. I can guarantee that my sensors are working fine since I have tried doing the same with new sensors. Sometimes when I burn the code onto the controller, initially it works properly, but then starts returning 0. Read more
Interfacing LCD with PIC MCU – I tried to interface PIC16f722A with an LM016L LCD. I wrote the C-code for initializing (LCD) and displaying characters on LCD. Somehow I got stuck when I simulated the program in Proteus. The problems are as follows:
1)When i transfer X number of characters, it just shows (X-1) number of characters, ignoring the last character.
2) The proteus shows that “Controller )LM016L) was busy while recieving the character”.
I didn’t use delay in the program. Instead, I used one-bit (D7) to monitor whether the LCD is busy or not. Here is the screenshot.