wired remote for pioneer hu
Post on 07-Jul-2018
229 Views
Preview:
TRANSCRIPT
-
8/18/2019 Wired Remote for Pioneer HU
1/22
Forum PICBASIC Community Discussion mel PIC BASIC Pro Wired remote for Pioneer HU
Thread: Wired remote for Pioneer HU
Hello , browsing with (Chrome) Version (42.0.2311.152)
User Name Password Log in
Remember Me?
Register Forgotten Your Password?
Home What's New Buy Now Wiki Live Posts User Map
Today's Posts FAQ Calendar Community Forum Actions Quick Links Advanced Search
Live Search
+ Reply to Thread Results 1 to 23 of 23
Thread Tools Search Thread Rate This Thread Display
- 28th July 2011, 17:38
Join Date:Location:
Posts:
Dec 2008Ploiesti,
ROMANIA516
Wired remote for Pioneer HU
Hi ! I try to build o ne wired remote for HU Pioneer , using remote control stalk near the steering wheel, from Renault. I wrote thecode ; in simulation work fine. But...I don't know how setting ports "b" and what to do when push_button it's press.In "origin a l" remote, the command a re given by put ting resistors "to ground". How can I do this with my PIC ? Thanks inadvance !
Code:
#1
Registered User fratello
Forum
http://www.picbasic.co.uk/forum/newreply.php?p=119938&noquote=1http://www.picbasic.co.uk/forum/index.phphttp://www.picbasic.co.uk/forum/forum.phphttp://www.picbasic.co.uk/forum/forumdisplay.php?f=1http://www.picbasic.co.uk/forum/forumdisplay.php?f=4http://www.picbasic.co.uk/forum/content.phphttp://www.picbasic.co.uk/forum/forum.phphttp://www.picbasic.co.uk/forum/usermap.phphttp://www.picbasic.co.uk/forum/forum.phphttp://www.picbasic.co.uk/forum/newreply.php?p=119938&noquote=1http://www.picbasic.co.uk/forum/faq.phphttp://www.picbasic.co.uk/forum/spy.phphttp://www.picbasic.co.uk/forum/search.php?do=getdaily&contenttype=vBForum_Posthttp://www.picbasic.co.uk/forum/register.phphttp://www.picbasic.co.uk/forum/search.php?do=getdaily&contenttype=vBForum_Posthttp://www.picbasic.co.uk/forum/content.phphttp://www.picbasic.co.uk/forum/login.php?do=lostpwhttp://www.picbasic.co.uk/forum/showthread.php?t=15229http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=105565#post105565http://www.picbasic.co.uk/forum/index.phphttp://www.picbasic.co.uk/forum/search.phphttp://www.picbasic.co.uk/forum/content.php?r=5http://www.picbasic.co.uk/forum/forumdisplay.php?f=1http://www.picbasic.co.uk/forum/member.php?u=10613http://www.crownhill.co.uk/section.php?section=13http://www.picbasic.co.uk/forum/forum.phphttp://www.picbasic.co.uk/forum/forumdisplay.php?f=4http://www.picbasic.co.uk/forum/calendar.php
-
8/18/2019 Wired Remote for Pioneer HU
2/22
@ DEVICE pic16F628A, INTRC_OSC, WDT_OFF, PWRT_OFF, BOD_OFF, MCLR_ON, LVP_OFF, CPD_OFF, PROTECT_OFF
Include "modedefs.bas" ' Serial Protocol Define OSC 4 ' 4MHz
CMCON = 7 ' Disable on-chip comparator, PORTA in digital mode
'// Define port pins as inputs and outputs ... TRISA = %00000111 TRISB = %11111100
portb = 1include "c:\pbp\keypad2.pbp" ' see http://www.picbasic.co.uk/forum/showthread.php?t=3250
main:gosub keypadscangosub checkgoto main
check:select case keycase 1 ; volume down trisb.2=0 ; ????? pause 200 ;
trisb.2=1 ' ?????
Hi, we are pleased to see that you are using our forum.
We'd like you to become a member of our community. Membership is FREE , please REGISTER and view our forums without these annoying remin
Once registered you may post on the forums, download from the file areas and use the WIKI without interruption.
REGISTER NOW
http://www.picbasic.co.uk/forum/register.phphttp://www.picbasic.co.uk/forum/register.php
-
8/18/2019 Wired Remote for Pioneer HU
3/22
Attached Images
-
8/18/2019 Wired Remote for Pioneer HU
4/22
-
8/18/2019 Wired Remote for Pioneer HU
5/22
-
8/18/2019 Wired Remote for Pioneer HU
6/22
Re: Wired remote for Pioneer HU
Thank You verry much for support !I use matrix keypad because the Renault remote act like one (see picture) !
So, it's enough (?) something like this :
Code:case 1portb.2=0trisb.2=0pause 500 ; i put the resistor on portb.2 to ground for 0.5 secportb.2=1trisb.2=1
The "portb" it's OK to set in header "PORTB=%11111100" ?
Last edited by fratello; - 28th July 2011 at 18:32.
Originally Posted by mister_e
What you need to do is to clear the PORTB bits (to 0) and set your TRISB bits to 0 when you want to set a resistor to ground, and to 1 when you want to disconnect the resistor from the circuit.
Reply With Quote
- 28th July 2011, 19:06
Join Date:Posts:
Sep 2009459
Re: Wired remote for Pioneer HU
Set all pin to low, and then just change tris registers, instead of changing port and tris.Also add 5.1V zener between resistor common wire and ground.
#4
Registered User
pedja089
http://www.picbasic.co.uk/forum/showthread.php?p=105566#post105566http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=105569#post105569http://www.picbasic.co.uk/forum/member.php?u=12182http://www.picbasic.co.uk/forum/member.php?u=12182http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=105567
-
8/18/2019 Wired Remote for Pioneer HU
7/22
Reply With Quote
- 28th July 2011, 19:43
Join Date:Location:
Posts:
Dec 2008Ploiesti,
ROMANIA
516
Re: Wired remote for Pioneer HU
Now it's ok ?
Code: '// Define port pins as inputs and outputs ... TRISA = %00000111 TRISB = %00000000
include "c:\pbp\keypad2.pbp" ' see http://www.picbasic.co.uk/forum/showthread.php?t=3250
main:gosub keypadscangosub checkgoto main
check:select case keycase 1 ; volume downportb.2=0pause 500 ; i put the resistor on portb.2 to ground for 0.5 secportb.2=1
#5
Registered User fratello
Reply With Quote
- 28th July 2011, 20:13
Join Date: Sep 2004
#6
http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=105569http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=105570http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=105571#post105571http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=105570#post105570http://www.picbasic.co.uk/forum/member.php?u=10613
-
8/18/2019 Wired Remote for Pioneer HU
8/22
-
8/18/2019 Wired Remote for Pioneer HU
9/22
Re: Wired remote for Pioneer HU
THANK YOU ALL !
Code: gosub checkgoto main
check:select case keycase 1 ; volume down trisb.2=0
case 2 ; track - trisb.3=0 case 3 ; volume up trisb.4=0 case 4 ; mute trisb.5=0 case 5 ; source trisb.6=0
case 6 ; track + trisb.7=0 end selectPause 500 ' do it for 0.5 secTRISB = 255Return
end 'of story !
Reply With Quote
- 28th July 2011, 21:13
Join Date:Location:Posts:
Sep 2004montreal, canada
6,900
#8
Contributor mister_e
http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=105574#post105574http://www.picbasic.co.uk/forum/member.php?u=580http://www.picbasic.co.uk/forum/member.php?u=580http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=105572
-
8/18/2019 Wired Remote for Pioneer HU
10/22
Re: Wired remote for Pioneer HU
Time to celebrate!
This code is...
Steve
It's not a bug, it's a random feature.There's no problem, only learning opportunities.
Reply With Quote
- 22nd May 2012, 13:52
Join Date:Location:
Posts:
Dec 2008Ploiesti,
ROMANIA516
Re: Wired remote for Pioneer HU
Scheme, as conceived above, does not work !!! I put opto-couplers at PIC outputs and work fine ...What could cause it does not work in this hardware ? Need to manage some (others) PIC registers ? Regards !
#9
Registered User fratello
http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=113948#post113948http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=105574
-
8/18/2019 Wired Remote for Pioneer HU
11/22
Reply With Quote
- 22nd May 2012, 14:25
Join Date:Location:Posts:
Feb 2006Gilroy, CA
1,527
Re: Wired remote for Pioneer HU
I'm confused. So, your big thank you a year ago, (and the happy dance by Steve) was for code you couldn't get working? Or youdidn't try the code until now? Perhaps more explanation is required, at least for me.
http://www.scalerobotics.com
#10
Moderator ScaleRobotics
Reply With Quote
- 22nd May 2012, 15:19
Join Date:Location:
Posts:
Dec 2008Ploiesti,
ROMANIA516
Re: Wired remote for Pioneer HU
Yes, I have not tested this scheme until yesterday ... and how I say, I found that does not work ! Even if my ohm-meter show"right" value of resistances ( at every press of buttons) the HU not react ; with optocouplers all are ok. Strange for me...Thehardware it's finished, but remains my astonishment about this. Thanks for reply !
#11
Registered User fratello
Reply With Quote
- 27th May 2012, 23:27 #12
http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=113951#post113951http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=113948http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=113949http://www.picbasic.co.uk/forum/member.php?u=2373http://www.picbasic.co.uk/forum/member.php?u=2373http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=113949#post113949http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=113951http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=114046#post114046
-
8/18/2019 Wired Remote for Pioneer HU
12/22
Join Date:Location:Posts:
Aug 2006Look, behind you.
2,762
Re: Wired remote for Pioneer HU
Welllll Fratello, it seems you've been bitten by a simulator ?One hint from Steve's code's comments . . . " MUST USE MPASM " . . . Your configs indicate PB assembler.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for realassets..
Moderator Archangel
Reply With Quote
- 28th May 2012, 07:24
Join Date:Location:
Posts:
Dec 2008Ploiesti,
ROMANIA516
Re: Wired remote for Pioneer HU
Thanks for reply !I do not think I understood very well ...What that means "MUST USE MPASM" ?!Trisx.y in PBP it's not like trisx.y in assembler ?
#13
Registered User fratello
Reply With Quote
- 28th May 2012, 15:28
Join Date:Location:
Nov 2003Wellton, U.S.A.
#14
http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=114053http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=114056#post114056http://www.picbasic.co.uk/forum/member.php?u=3355http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=114046http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=114053#post114053http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/member.php?u=3355
-
8/18/2019 Wired Remote for Pioneer HU
13/22
-
8/18/2019 Wired Remote for Pioneer HU
14/22
-
8/18/2019 Wired Remote for Pioneer HU
15/22
Re: Wired remote for Pioneer HU
So...with schematic from post #1 - no results !With a simple resistor - good results ; with optocouplers - good results too.
Attached Images
-
8/18/2019 Wired Remote for Pioneer HU
16/22
-
8/18/2019 Wired Remote for Pioneer HU
17/22
Last edited by fratello; - 28th May 2012 at 18:57.
Reply With Quote
- 28th May 2012, 19:58
Join Date:Location:
Posts:
Dec 2008Ploiesti,
ROMANIA516
Re: Wired remote for Pioneer HU
...and how an "original" remote work :
#18
Registered User fratello
http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/member.php?u=10613http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=114061#post114061http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=114059
-
8/18/2019 Wired Remote for Pioneer HU
18/22
Attached Images
Reply With Quote
- 29th May 2012, 06:16
Join Date:Location:Posts:
Oct 2005Sweden
2,576
#19
Contributor HenrikOlsson
http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=114065#post114065http://www.picbasic.co.uk/forum/member.php?u=1695http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=114061http://www.picbasic.co.uk/forum/member.php?u=1695
-
8/18/2019 Wired Remote for Pioneer HU
19/22
Re: Wired remote for Pioneer HU
Hi,I haven't studied this thread in detail but if the idea is to "place a resistance" across the plug then I don't think you can run thesame code (if that's what you're doing) with the two different hardware designs. When using the circuit with the opto-isolatorsyou drive the PIC-pin high in order to turn on the opto-isolator and connect the associated resistor across the plug - and if I readyour posts correct this works fine.
It's not exactly clear to me how the plug is connected to the circuit in post#1 but it looks to me as if this circuit doesn't work thesame way as the one with the opto-isolators. So, if you're trying to run the same code with the two circuits my guess is that'swhere your problem is.
/Henrik.
Reply With Quote
- 29th May 2012, 06:40
Join Date:Location:
Posts:
Dec 2008Ploiesti,
ROMANIA516
Re: Wired remote for Pioneer HU
Thanks for support, Mr.Henrik !When I switch to optocouplers, I changed code :
Code:
case 1 ; volume downPortb.2=1Pause 100Portb.2=0
My "sources of inspiration" was here : http://www.panuworld.net/minidisc/fordsony/index.htm & http://www.fiatforum.com/marea/29682...-finished.html
Last edited by fratello; - 29th May 2012 at 06:47.
#20
Registered User fratello
http://www.picbasic.co.uk/forum/member.php?u=10613http://www.panuworld.net/minidisc/fordsony/index.htmhttp://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=114065http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=114067#post114067http://www.picbasic.co.uk/forum/member.php?u=10613http://www.fiatforum.com/marea/29682-marea-steering-wheel-remote-2-sony-adapter-finished.html
-
8/18/2019 Wired Remote for Pioneer HU
20/22
Reply With Quote
- 29th May 2012, 06:54
Join Date:Location:Posts:
Aug 2006Look, behind you.
2,762
Re: Wired remote for Pioneer HU
Must use the MPASM assembler from Microchip, and not the PB assembler supplied with PBP. I am betting the simulator defaultsto using MPASM and simply ignores the PB configs altogether. So when you run it, it knows what to do with Steve's keypad codewhereas PB does not.Most of Steve and Darrel's code samples require MPASM, and when you upgrade to PBP3 it ONLY usesMPASM, so it is a worthwhile change.
Last edited by Archangel; - 29th May 2012 at 06:58.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for realassets..
#21
Moderator Archangel
Originally Posted by fratello
Thanks for reply !I do not think I understood very well ...What that means "MUST USE MPASM" ?!Trisx.y in PBP it's not like trisx.y in assembler ?
Reply With Quote
- 11th April 2013, 11:40
Join Date:Posts:
Apr 20131
#22
http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=114067http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=114068#post114068http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=119822#post119822http://www.picbasic.co.uk/forum/member.php?u=3355http://www.picbasic.co.uk/forum/member.php?u=3355http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=114068http://www.picbasic.co.uk/forum/showthread.php?p=114053#post114053
-
8/18/2019 Wired Remote for Pioneer HU
21/22
« Previous Thread | Next Thread »
Re: Wired remote for Pioneer HU
Hi,
did any of you build adapter for stalk steering wheel controls on renault (tuner list stereo instalation, mine laguna year 2002) forpioneer? I saw scheme above but i dont know how to wire it in little yellow miniISO 6-pin jack that is connected on steeringwheel controls? Any help?
Thank You in advance.
Registered User Sandiki
Reply With Quote
- 19th April 2013, 05:44
Join Date:Posts:
Aug 200541
Re: Wired remote for Pioneer HU
the reason the original design doesnt work is due to parallel resistors not giving the required voltage at the stereo plug (due tovoltage divider effects), by using opto's you are supplying discreet resistances which results in the correct voltages
#23
Registered User jamie_s
Reply With Quote
+ Reply to Thread
http://www.picbasic.co.uk/forum/showthread.php?t=15229&goto=nextnewesthttp://www.picbasic.co.uk/forum/member.php?u=21922http://www.picbasic.co.uk/forum/newreply.php?p=119938&noquote=1http://www.picbasic.co.uk/forum/showthread.php?t=15229&p=119938#post119938http://www.picbasic.co.uk/forum/member.php?u=1516http://www.picbasic.co.uk/forum/showthread.php?t=15229&goto=nextoldesthttp://www.picbasic.co.uk/forum/member.php?u=1516http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=119938http://www.picbasic.co.uk/forum/newreply.php?do=newreply&p=119822http://www.picbasic.co.uk/forum/member.php?u=21922
-
8/18/2019 Wired Remote for Pioneer HU
22/22
-- vB4 Default Style Contact Us Back to Home Page Archive Privacy Statement Terms of Service Top
All times are GMT +1. The time now is 03:26 .
Powered by vBulletin®Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.
Admin by Lester, PIC, PICmicro, dsPIC,MPLAB,PICBASIC, PICBASIC PRO, PICPROTO, and EPIC a re trademarks of Microchip Technology Inc. in the USA and other countries.
Copyright © 2013 Crownhill Associates Limited. All rights reserved
Members who have read this thread : 5
You do not have permission to view the list of names.
Digg
Crownhill
Google
Engadget
HackadayYouTube
SourceForge
QuickBluePBPro
PBP projects
Bookmarks
You may not post new threadsYou may not post repliesYou may not post attachmentsYou may not edit your posts
Posting Permissions
BB code is OnSmilies are On[IMG] code is OnHTML code is Off
Forum Rules
http://digg.com/submit?phrase=2&url=http%3A%2F%2Fwww.picbasic.co.uk%2Fforum%2Fshowthread.php%3Ft%3D15229&title=Wired+remote+for+Pioneer+HUhttp://www.picbasic.co.uk/forum/archive/index.phphttp://www.picbasic.co.uk/forum/sendmessage.phphttp://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=http%3A%2F%2Fwww.picbasic.co.uk%2Fforum%2Fshowthread.php%3Ft%3D15229&title=Wired+remote+for+Pioneer+HUhttp://digg.com/submit?phrase=2&url=http%3A%2F%2Fwww.picbasic.co.uk%2Fforum%2Fshowthread.php%3Ft%3D15229&title=Wired+remote+for+Pioneer+HUhttp://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=http%3A%2F%2Fwww.picbasic.co.uk%2Fforum%2Fshowthread.php%3Ft%3D15229&title=Wired+remote+for+Pioneer+HUhttp://www.picbasic.co.uk/forum/misc.php?do=bbcodehttp://www.picbasic.co.uk/forum/showthread.php?t=15229#tophttp://www.crownhillassociates.com/index.php?option=com_content&view=article&id=55:privacy&catid=38:legalstuff&Itemid=70http://www.picbasic.co.uk/http://www.picbasic.co.uk/forum/showthread.php?t=15229#tophttp://www.crownhill.co.uk/http://www.picbasic.co.uk/forum/misc.php?do=showsmilieshttp://www.engadget.com/http://www.picbasic.co.uk/forum/showthread.php?t=15229#tophttp://www.crownhill.co.uk/http://www.picbasic.co.uk/http://www.crownhillassociates.com/index.php?option=com_content&view=category&id=38&Itemid=70http://hackaday.com/http://www.picbasic.co.uk/forum/misc.php?do=bbcode#imgcodehttp://www.quickblue.co.uk/http://www.picbasic.co.uk/forum/misc.php?do=showruleshttp://www.picbasic.co.uk/forum/www.youtube.com/http://www.crownhill.co.uk/catalog.phphttp://sourceforge.net/
top related