Forum Replies Created
-
AuthorPosts
-
September 4, 2013 at 3:54 pm in reply to: interfacing camera to the pic microcontroller and storing the content in pendrive #10422
Luis Morquecho
ParticipantHave you heard about Raspberry????
Its not a Microcontroller but its alike. Its a Nano PC (Size of credit card) with linux.
Raspberry have and input connector (MIPI) for cameras and can store the images in a pendrive connected to its USB.
You can get .jpg pictures or video in format .h264
Luis Morquecho
ParticipantLDR is a Light Dependent Resistor, so its value of Resistance change with the light that the LDR receive.
The more light the less resistance.
You must get a network of resistances for example in serial to convert the variation of resistance in a variation of voltage.
+VCC
|
|
Resistance (1K)
|
|
> Analogic input (PIC)|
LDR
|
|
GROUND
As AJISH ALFRED have said before connect it at an Analog Input of the PIC and read the analogic value
Luis Morquecho
ParticipantIf you are able to connect through serial port your PIC 16F877, and your android device, you can make a code in C for your android that reads the serial port and generates a website.
Maybe the serial port will be virtual, through USB.
Read more in my next article:
http://www.engineersgarage.com/contribution/microcontroller-interface-with-website
It’s for Windows but you can compile the C code for android.
I hope it helps you
Luis Morquecho
ParticipantIf I were you I will use Hyperterminal to check all.
First connecting Hyperterminal to the GSM and making it works by hand.
Second connecting Hyperterminal to the PIC and seeing if I receive the correct commands.
If all it´s OK then connect PIC to the GSM
Luis Morquecho
ParticipantWhat you must do is to investigate which is the secuence of the stepper motor.
The 16 posibilities are next:
IN1 IN2 IN3 IN4
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
” ” ” “
1 1 1 1
Get a battery or power supply of 3,6V
1º connect GND of Power to the GND of the motor.
2º Try all the 16 posibilities and if the motor turns note down in which direction.
3º If for example there are 3 secuencies that turn in right direction reproduce this, but betwen out a secuence and out the next secuence put a delay that will mark the velocity of the motor. Watch out with the delay is not too small.
while (1)
{
out port (0100) //Secuence 1 turn right
delay_ms (500) //delay 0,5 s
out port (1000) //Secuence 2 turn right
delay_ms (500) //delay 0,5 s
out port (1100) //Secuence 3 turn right
delay_ms (500) //delay 0,5 s
}
with this example the motor always turn in the right direction
Luis Morquecho
ParticipantIt depends in the type of Microcontroller, for example:
– With PIC16F84 serial communications
– With PIC 18F4550 serial communications, I2C, SPI, USB
Also you can create your own protocol of communications with digital inputs and outputs. All you need it´s to implement your own protocol in both devices (PIC and PC) or (PIC and PIC)
Luis Morquecho
ParticipantIn Internet there are a lot of programmers that you can do it yourself.
I have mount 2 for myself.
– PROPIC Programmer (runs with the parallel port) and you need external power
– JDM Programmer (runs with serial port) but watch out because don´t work with USBserial ports.
You need also 2 softwares.
1º Like CCS Compiler.
2º ICPROG to program the PIC.
August 18, 2013 at 7:28 am in reply to: How To Use PIC Microcontroller For Voice Input And Output #10332Luis Morquecho
ParticipantIf you want reproduce audio signal, yo can try this:
1º Get a Microcontoller power enough with at least one Analogic to Digital Converters (ADC), enough memory(10000), and with one Digital to Analogic Converter(DAC).
2º Connect the source of audio signal (like microphone + Amplifier, etc) to a ADC input.
3º In the Microcontroller program a software that reads ADC input every 20 microseconds and store the value in memory. The sample frecuency is 50 Khz that must be at least 10 times upper the frecuency to convert in this case 5Khz. For 2 seconds of record you need to sample 100000 values and stores it.
4ºOnce you have stored all the values you must convert digital values in Analogic with DAC.
Every 20 microseconds read a value from the memory and out by the DAC.
5º Do this with the 10000 values.
6º At the output of the DAC you need an Amplifier with filters.
Luis Morquecho
ParticipantIf it does not work, maybe you could install some VIRTUAL MACHINE of XP 32bits with VMware software
-
AuthorPosts