Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi again, I finally was able to try it on hardware. Again, it didn't work :( it still sends random ASCII stuff.
Good thing is, I took your code to CCS and was able to make it work. So, in the night I will have an answer about if it transmits
OMG! That's awesome!!
I don't have the hardware right now, tomorrow I'm going to test it on the real circuit and I'll tell you. But it's awesome!! Thanks a lot!
Sorry for being ignorant on CCS. I think I was editing a single source file instead of having created a project. Now I think I got it right.
I used those delays because it needs to give visual feedback like a real car, as I told you.
And yeah, maybe interrupt are the solution but I have...
Ok so, the whole system is a car alarm, and you need to be capable of activate and deactivate it using either a RF control or a serial transmission.
The activate(), deactivate() and sound() functions change the state of the alarm using the X variable. Each one of them provides visual feedback...
Hi again, sorry to bother you again. I got a new issue and you seem to know a lot about this.
I can't make a full duplex transmission. If a do it PIC -> virtual terminal everything is okay. But when I also enable VT -> PIC, the microcontroller won't allow me to use any logic input, I mean...
I attached you the CCS code. I only have one HC-05, so I used "Bluetooth Terminal" for Android. Here:
https://play.google.com/store/apps/details?id=nextprototypes.bluetoothterminal&hl=es
Tell how you do with that
Hi again, someone came up with the idea un using CCS which has a "more complete" definition of RS232. I tested it and was perfect!
I guess using UART1_Init(9600) lacks of many parameters, meanwhile #USE RS232(BAUD,BITS,PARITY,XMIT,RCV) is more accurate.
Anyway, thanks for your patience, time...
I tried it, nothing improved :bang: And yes, it was working in Proteus. I'm using the intenal RC 8 MHz oscillator.
I attach you a screen capture of what my Android captured: the interrogation signs are the ASCII interpretations and the rest are the HEX strings received.
Thank you, there goes the MikroC Project and the Proteus 8 simulation. It it just the PIC Tx and Rx pins to the Virtual Terminal, and phisically they go to Rx and Tx of Bluetooth respectively.
I tried with and without the voltage divider in the PIC's Tx pin but nothing changed.
Changed it to 9615, nothing happened... gonna read the links. However I don't know if changing configurations is going to help because I connected it straight to the Arduino and worked perfectly :|
I used it with Arduino and it's still working!
I used 1,8k and 3,3K resistors to make a voltage divider so it would convert 5V to 3.3V but still.. random characters.
And yes, I'm using the second one, the HC-05
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.