Search Results - Proton BASIC community web site


Search:

Type: Posts; User: joesaliba

Page 1 of 5 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    19
    Views
    305

    Re: Decimal part from a Float

    Bob,

    I should not post when I just wake up. Your solution is very simple and neat!

    But still I think that after: -


    fractnum = floatnum - intnum 'fraction

    should be multiplied by 1000...
  2. Replies
    19
    Views
    305

    Re: Decimal part from a Float

    Teo,

    Can you multiply the number by 1000, and then use the Dig command? I.e.: -


    Dim myFloat As Float = 123.456
    Dim tDword As Dword
    Dim aResult As Word = 0
    Dim bResult As Word = 0
    Dim...
  3. Thread: Virtual Port

    by joesaliba
    Replies
    6
    Views
    239

    Re: Virtual Port

    I do not know exactly what are you trying to do but, have you checked ClearPin and SetPin in the compiler manual page 118 and page 169? In these commands pins are replaced with a number.

    There is...
  4. Replies
    2
    Views
    138

    [SOLVED !] Re: proton basic flex lcd library

    Proton already have these in it's command. Look at Alphanumeric Declares, page 413 of the manual.

    3910
  5. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    Thanks all for your time and feedback. Will use just an ADC for now as results are very stable.
  6. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    Even if I am sampling only the positive side?
  7. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    No I do not have. Circuit is far from ready so I can add it to the circuit and give it a try.
    As I said, I am getting very stable readings with 4ms, even with 5ms it will be good.

    Does I need to...
  8. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    The delay is very important at which part of the wave to catch. With 2500us I have some oscillations. The best I found so far is 4ms. For what I am measuring is acceptable. I will play with Quanta...
  9. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    Did a small mistake. Delay should be 2500us not 10ms to catch 1/4 wave.
  10. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    I did a software mix from Les and David suggestions. I must say that I am using the ADS1115 and the code that Les had written for this device. Not that I need this, but I had it in the bits and...
  11. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    I found a formula for current transformers burden resistor and made a small Excel sheet.

    I tried different values and looks to be ok.

    3907
  12. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    Thank you so much for this information. How sometimes I cannot think outside the box. Will try both methods.
  13. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    @Charlie. They are not capacitors, they are a voltmeter and an ampere meter.

    @Rick. Thanks for the suggestion.

    I will make some tests if I am able to acquire parts. All shops are closed now.:(
  14. Replies
    20
    Views
    394

    Re: Current transformer AC - DC

    Thanks Charlie.

    Found two. Will see from where I can get some op-amps and make some tries.

    3905

    3906
  15. Replies
    20
    Views
    394

    Current transformer AC - DC

    So I have this current transformer and did the circuit as per this picture: -

    3904

    I understand that the output will be something like an AC waveform over 0v.

    How can I change the output to...
  16. Replies
    26
    Views
    622

    Re: Coronavirus Alert!!

    Well, one wonders how many divorce will be as well....:biggrin::biggrin:
  17. Replies
    26
    Views
    622

    Re: Coronavirus Alert!!

    Well, in Italy most people are dying because as Gamboa said the hospitals are full, and there are a lot of old people. My dad and mom are old, and doctor advised to self isolate for as long as they...
  18. Replies
    26
    Views
    622

    Re: Coronavirus Alert!!

    Over here, Malta, most of the responsible people are staying at home, even without a complete lockdown from the authorities.

    However, than there are those stupid, irresponsible, selfish persons...
  19. [SOLVED !] Re: How to read TTL input of a displacement transducer

    It is unbelievable how accurate this encoder is, it does not miss a beat!

    Although the print statement is a bit `slow', turning the encoder shaft fast, very fast, with my fingers, when it stops...
  20. [SOLVED !] Re: How to read TTL input of a displacement transducer

    Amod,

    I have received the encoder today, and the code I supplied works. I have no external pull-up resistors or whatso ever.

    I too have multiple counts, for example: - 2, 4, 6, 8, etc... but I...
  21. Thread: Versioning

    by joesaliba
    Replies
    20
    Views
    793

    Re: Versioning

    Reading this thread I searched for IDLOCKS and came up with this forum link: - http://www.protonbasic.co.uk/showthread.php/60737-Pic12f675-id?highlight=idlocs

    It looks that it can be done.
  22. [SOLVED !] Re: How to read TTL input of a displacement transducer

    Amod,

    I will wait for my device to arrive, though it will take some time.

    And as usual from, you never supply what you have asked to do, in this case the circuit diagram, and actual code wrote....
  23. [SOLVED !] Re: How to read TTL input of a displacement transducer

    I ordered one of those encoders to make tests. It will take a while until it arrives.

    Amod, post your circuit diagram how everything is connected.
  24. Thread: TM1637 code

    by joesaliba
    Replies
    5
    Views
    394

    Re: TM1637 code

    I would have gladly tried to correct it if I, (we), still had the ability to correct forum entries. I will have a look and give you suggestions what to do.
  25. Re: How can you change the color of the program writing?

    This is work in progress and John is working on it to make it better.
  26. Thread: TM1637 code

    by joesaliba
    Replies
    5
    Views
    394

    Re: TM1637 code

    Thanks Bob for this contribution. If I may, I would suggest to promote it to an article so it does not get lost in the forum.
  27. [SOLVED !] Re: How to read TTL input of a displacement transducer

    Well, I saw the YouTube you posted and there is a small code which you could have easily converted.

    I came up with this: -


    Dim EncA_LastState As Bit
    Dim EncA_State As Bit
    Dim Count ...
  28. Replies
    3
    Views
    402

    Re: CWrite and ISR

    Les,

    Have you received the samples for the 12F1572 please? Perhaps I get around this problem.
  29. Replies
    8
    Views
    658

    Re: Empty if..endif bug

    For me this thread should not be deleted.

    If someone runs into a similar problem he / she will know that the problem was solved with latest version of the compiler.

    And also, for those who had...
  30. Re: How can you change the color of the program writing?

    Giuseppe,

    I also find the Cream colour as an excellent alternative to white for background colour.
  31. Re: SEROUT baudrate not correct in combination with 22.1184 MHz?

    Glad I was of help.
  32. Re: SEROUT baudrate not correct in combination with 22.1184 MHz?

    Looking at page 240 of the manual, I think you can adjust the rate of the baud rate to accommodate your xtal.

    For example, for 8-bit no-parity, inverted @2400 baud rate the value of the 16-bit is...
  33. Replies
    8
    Views
    658

    Re: Empty if..endif bug

    Picprogrammer,

    Please, Les made it clear that the compiler you are using is old, and as you discovered the anomaly was ironed out. I do not think your request for version 3.6.0.2 will be fixed. If...
  34. Re: Proton Compiler 24-bit Long Integer Variables to be added soon!

    Thank you Les for your work.
  35. Thread: Read HX711

    by joesaliba
    Replies
    25
    Views
    9,073

    Re: Read HX711

    What I am looking for is to use only three load cell. To be honest I bought them a while ago and never had a chance to try it, although I did some research.
  36. Thread: Read HX711

    by joesaliba
    Replies
    25
    Views
    9,073

    Re: Read HX711

    I have three wires from each load cell. They are: - Red, Black and White.

    Attached are some information I found on the web, including how to connect to the board.
  37. Thread: Read HX711

    by joesaliba
    Replies
    25
    Views
    9,073

    Re: Read HX711

    Just heard this minute that 90% of flights to and from China are cancelled. This news came from Malta post to inform customers that there could be long delays :(
  38. Thread: Read HX711

    by joesaliba
    Replies
    25
    Views
    9,073

    Re: Read HX711

    Mine got: -

    GND
    DT
    SCK
    VCC

    I got four sensors with this module. I will try to connect only three, which I found no information how to connect them.

    Back to Tim question: -
  39. Thread: Read HX711

    by joesaliba
    Replies
    25
    Views
    9,073

    Re: Read HX711

    Well, post #10 says that he have fluctuations of +/- 0.05g over 3Kg. I think it all depends how accurate you need it.
  40. Re: Dongle light does not work and cannot compile

    I encountered this problem some time ago and I managed to install the drivers properly. Please follow this link, it should help you.
  41. [SOLVED !] Re: How to read TTL input of a displacement transducer

    Much true!!
  42. [SOLVED !] Re: How to read TTL input of a displacement transducer

    Don't tell Les, I have been on this forum for 15 years now.
  43. [SOLVED !] Re: How to read TTL input of a displacement transducer

    I think this is the one Les!
  44. Replies
    3
    Views
    402

    Re: CWrite and ISR

    Thanks Les for your reply,

    However, it still not working. As you see from my code I made multiple instances to disable the interrupt before I erase and write to the flash memory.

    However as I...
  45. Re: Something screwy about 16F88 OSCCON register

    I use a lot the 16F88 and never had problems. Having said that, I use the Mikroelektronika programmer.

    But as a direct replacement with more options I moved to the 16F1827 or 16F1847 with more...
  46. Replies
    3
    Views
    402

    CWrite and ISR

    I am struggling to make work CWrite and Interrupt together.

    If I comment out: -


    On_Interrupt Isr ' Where to go on an Interrupt

    flash data is being written, but if I uncomment...
  47. Replies
    142
    Views
    3,665

    Re: Les's ILI9325 Wiki code

    Flosi,

    Thanks for the link. Will order a display and have a go.
  48. Re: Something screwy about 16F88 OSCCON register

    Rick,

    I do have 16F88 to test. Would you mind sending the fuses you are using including osccon etc to test?

    I will make a 1 second delay in a main menu to test.
  49. Replies
    142
    Views
    3,665

    Re: Les's ILI9325 Wiki code

    Flosi thanks for the link.

    And for code software, which one shall I use, the one in the wiki or there is an altered one?
  50. Re: Something screwy about 16F88 OSCCON register

    Rick,

    Try the following when using the Fuse Configurator for 16F devices. I remember had a similar problem and I think was with the fuse names that where being generated.

    In Fuse Configurator...
  51. Replies
    16
    Views
    1,643

    Re: NEC Protocol IR remote control decoder

    We should open a thread regarding a meet. 90% I would travel from here, Malta, to meet for a beer.
  52. Replies
    142
    Views
    3,665

    Re: Les's ILI9325 Wiki code

    I am going to buy this type of display just to try it out for now.

    So to summarize. Les code in the Wiki area still works without mods, correct? And what changes have been made to the touch? Long...
  53. Replies
    24
    Views
    1,004

    Re: Flying drones

    And than there is an insane video, not from my country, but when if I am able to downloaded I will share it here.
  54. Replies
    24
    Views
    1,004

    Re: Flying drones

    https://www.youtube.com/watch?v=HtDAWyw8WLI&t=58s&fbclid=IwAR1BNy5px6G04bszOgro4NVNfSZekd4xSRQKQi7YRcE_MQEhPwUqM1NTuhQ
  55. Replies
    24
    Views
    1,004

    Re: Flying drones

    Sorry for late reply.

    Thanks for your comments regarding my videos. It's been a while since I did some drone flying but I must say it is a wonderful experience to see the world from a different...
  56. Replies
    34
    Views
    1,257

    Re: New Prusa mini 3D printer

    WOW, very nice. Well done.
  57. Replies
    34
    Views
    1,257

    Re: New Prusa mini 3D printer

    Yes, PETG is more durable that PLA. It costs a few more then PLA.
  58. Replies
    24
    Views
    1,004

    Re: Flying drones

    These are of my first videos. On the first one I used an ND filter and came a bit `dark'.


    https://www.youtube.com/watch?v=PaoVJCQCqAA&t=34s


    https://www.youtube.com/watch?v=Jprn3o4ufTg
  59. Replies
    24
    Views
    1,004

    Re: Flying drones

    Yes I do, although I have an `old' platform now it still sufficient for me. I do not do it for business, just for recreational purposes.

    I had build one myself with a GoPro attached to it. Used to...
  60. Replies
    34
    Views
    1,257

    Re: New Prusa mini 3D printer

    Simon,

    Glad you are enjoying your 3D printer

    Just be careful that PLA can warp at certain temperatures. Just use different material such as PLA+ or PETG.
  61. Replies
    6
    Views
    337

    Re: Happy New Year

    Happy New Year to all.
  62. Replies
    49
    Views
    2,377

    Re: PIC 18F1330 HPWM problem

    This will alter your PWM: -


    CCPR2L = Temp_PWR

    As I understand it PER_Lin is your PWM value.
    So here you have to change your value PER_Lin: -


    '\
  63. Replies
    16
    Views
    1,230

    Re: It's Christmas, how about a bit of giving?

    Done. Thanks Les.
  64. Replies
    49
    Views
    2,377

    Re: PIC 18F1330 HPWM problem

    Here under is a very simplified version of what I posted: -


    PWR_Lin = 0
    Temp_PWR = PWR_Lin ' Copy PWR_Lin to variable Temp_PWR
    HPWM 2, PWR_Lin, 31250 ' LINEARISED output...
  65. Replies
    49
    Views
    2,377

    Re: PIC 18F1330 HPWM problem

    Ok. If you can afford that for a very short period of time you stop PWM, reload HPWM with different frequency and reload PW is the simplest way.

    Otherwise have a good read in the Wiki section...
  66. Replies
    49
    Views
    2,377

    Re: PIC 18F1330 HPWM problem

    The code I posted in post #34 is for 10bit PWM, and it works as I used it a lot of times.
  67. Replies
    13
    Views
    861

    Re: Proton review

    So if the name, possibly of this website is changed for example to protonpicbasic.co.uk it will get more hits because pic basic is included in the website name? Excuse my ignorance in the subject.
  68. Replies
    49
    Views
    2,377

    Re: PIC 18F1330 HPWM problem

    Archi,

    Have a look at this old code I used to use for 10 bit HPWM.

    Note that I use a first time HPWM because it seems that frequency is set as desired. I had checked it on an osciloscope. Then...
  69. Replies
    36
    Views
    22,558

    [SOLVED !] Re: MPU6050 DMP, Accelerometer and Gyroscope Code

    I got something running but had to shelf the project for now.

    What is TeaPot?
  70. Re: A registration is required for device 16F18326!?

    Well, I don't have your version installed but it worked for me with the current version. Can you install latest version on another PC and try?
  71. Re: A registration is required for device 16F18326!?

    If you say what version of the compiler are you using will help a lot.

    I am using v3.7.2.1, and just added `Device = 16F18326' and compiled succefully.
  72. Replies
    12
    Views
    3,369

    Re: Anybody used the ADS1115 16bit A/D?

    Some progress.

    I did managed to get some readings. The problem with Les code was the address for the ADS1115 connected to GND.

    Data sheet says: - %1001000

    and I think Les interpreted it as...
  73. Replies
    12
    Views
    3,369

    Re: Anybody used the ADS1115 16bit A/D?

    So I have tried Les code, but I am using an 18F26K22 and a 4MHz crystal

    I used the original I2C routines, so removed the: -


    Include "Bus.inc" ' Load the replacement Busin and...
  74. Thread: Fusion 360

    by joesaliba
    Replies
    20
    Views
    837

    Re: Fusion 360

    Not a 3D forum for software, but for 3D printing machines, and yes on social media.
  75. Thread: Fusion 360

    by joesaliba
    Replies
    20
    Views
    837

    Re: Fusion 360

    Just click that you are a student and you have 5 years free. I did that and it works. Known that from other 3D forums.
  76. Thread: Fusion 360

    by joesaliba
    Replies
    20
    Views
    837

    Re: Fusion 360

    Fusion 360 is free for 5 years if you register.
  77. Replies
    49
    Views
    2,377

    Re: PIC 18F1330 HPWM problem

    Thank you so much. Looking forward.
  78. Replies
    7
    Views
    334

    Re: HD44780 positioning the cursor.

    Yes,

    I have seen a lot on this forum where line 3 is a continuation of line 1, and line 4 is a continuation of line 2.

    Having said that, the LCD I use does not have that problem and I can print...
  79. Replies
    4
    Views
    3,632

    Re: Protected Words

    Yes, the following need Declare in front of them: -

    RSOUT_PIN
    RSOUT_MODE
    SERIAL_BAUD
    RSOUT_PACE

    The following there is NO need to make Declare in front of them: -

    Device
  80. Replies
    49
    Views
    2,377

    Re: PIC 18F1330 HPWM problem

    Sorry to hijack this thread.

    Dompie, do you have a working code for that board? Never did SPI so do not know from where to begin.
  81. Replies
    9
    Views
    381

    Re: Reset from the software

    Keytapper,

    Once I read on this forum of a way to reset the PIC by adding a transistor to the MCLR pin and reset the PIC on a hardware method rather than software. Do not know if you have PCB ready...
  82. Replies
    9
    Views
    381

    Re: Reset from the software

    Les,

    I totally agree with you that the 18F devices are a lot better. However, Microchip never did an 8-pin device for the 18F which is very handy in small applications.
  83. Replies
    7
    Views
    334

    Re: HD44780 positioning the cursor.

    I use a 4*20 LCD. My type of LCD wraps to the next row if I go over 20. However, I had display simply not wrapping if I exceed the number of column. So I think that not every LCD behaves the same,...
  84. Replies
    4
    Views
    3,632

    Re: Protected Words

    I think you have to write it this way: -


    Declare Create_Coff = On

    or


    Declare Create_Coff = True
  85. Replies
    34
    Views
    1,257

    Re: New Prusa mini 3D printer

    Get Fusion360, it is free and very good. A couple of minutes on YouTube wil get you going to design 3D prints.
  86. Re: Dongle Issues with Windows 7 64 Bit. Making it difficult to use already purchased

    Gary,

    Use USBDeview to view USB devices being connected. Then delete only that device.

    Have you read post #3 of this thread? If yes, follow the instructions on the Wiki. 98% of the users that...
  87. Replies
    34
    Views
    1,257

    Re: New Prusa mini 3D printer

    Prusa had always made some of the finest 3D printers. Having said that, I did not read anything on this new printer.
  88. Replies
    12
    Views
    3,369

    Re: Anybody used the ADS1115 16bit A/D?

    Thank you Tim. Looking forward.

    Dave, I have a couple of ADS1115 breakout boards which like to use them. However, thank you for pointing me to new devices.
  89. Replies
    12
    Views
    3,369

    Re: Anybody used the ADS1115 16bit A/D?

    Hi Tim,

    Searched for an ADS1115 on this forum and this is the only thread that came up.

    How did it worked for you please?
  90. Replies
    73
    Views
    1,685

    [OFFER] Re: Proton MKII Development Board

    Just received my box from Crownhill. Thanks Lester.

    Who ever packed the box must be super good in packing.
  91. Replies
    142
    Views
    3,665

    Re: Les's ILI9325 Wiki code

    Same here. Could someone please post the missing files maybe the one that I downloaded are incompatible?
  92. Replies
    73
    Views
    1,685

    [OFFER] Re: Proton MKII Development Board

    Lester,

    I wrote here because on Crownhill website it says out-of-stock.
  93. Replies
    73
    Views
    1,685

    [OFFER] Re: Proton MKII Development Board

    Lester,

    Do you have some Amicus boards for me please, say two?

    Thanks
  94. Replies
    6
    Views
    213

    Re: Relational Operators

    Paul,

    I have not tried your problem but as a workaround I think the following will work: -


    If A < B Or A = B Then
    ' What you want to do here
    EndIf

    If you make all tests and find that...
  95. Thread: Draft Posts

    by joesaliba
    Replies
    4
    Views
    285

    Re: Draft Posts

    Yes that was what I am referring to. Sorry for the double post.
  96. Thread: Draft Posts

    by joesaliba
    Replies
    4
    Views
    285

    Re: Draft Posts

    Hi Lester,

    It been a week that I did not access the forum as I was abroad on holiday. I have seen the `Rely with Draft', however, on top of the page there was a ribbon that after you click on...
  97. Replies
    9
    Views
    285

    Re: Is XTAL available at compile time

    Bob,

    Have a look at how errors are handled in this piece of code once I found around: -


    $if _device = _16F88
    Declare Reminders Off
    @ CONFIG_REQ = 0 ; Override Compiler's configuration...
  98. Replies
    9
    Views
    248

    Re: CWRITE and 18F25K50

    What I always was/am afraid of is the write address.

    How one would know where to write to a particular PIC address without messing with the code space? And is the same for using i.e. a 12F1572?
  99. Re: Using a PLC HMI to communicate with a pic

    Geoff,

    I did some basic stuff with Nextion. If you encounter problems sending data just let me know. Having said that, I have the early display versions, the enhanced ones seems to be better with...
  100. Replies
    24
    Views
    661

    Re: The use of USB with the 18F2550

    I cannot find the two USB PIC's I had, so for now cannot do any test.

    One thing I remember is that in my code I made a loop to test if the PIC can send data to USB.

    Why? Because if the COM...
  101. Replies
    10
    Views
    1,537

    Re: USB Memory stick

    Les,

    By any chance, have you made progress on the library for this module? Thanks
  102. Re: Using a PLC HMI to communicate with a pic

    I use Nextion and they are good. However, do not expect the same level of help as here on their forum. Just browse through some of their forum posts and you realise what I mean.

    Geoff sorry for...
  103. Replies
    24
    Views
    661

    Re: The use of USB with the 18F2550

    The CDC I used was practically turning a PIC into a COM port.

    If I have any chance, which is very rare at the moment, I will try to compile the code and see if it works.
  104. Replies
    24
    Views
    661

    Re: The use of USB with the 18F2550

    Yves,

    Way back in 2013, (that is what the Wiki says), I did connect a PIC with USB and controlled 8 LED's. Have a look here.

    Having said that, That was an old version of the USB CDC and never...
  105. Replies
    5
    Views
    153

    Re: Dev boards (I can't afford)

    Will kkep it in mind for next order, perhaps they will offer me that 10% discount as well!
  106. Replies
    5
    Views
    153

    Re: Dev boards (I can't afford)

    Couldn't agree more!
  107. Replies
    5
    Views
    153

    Re: Dev boards (I can't afford)

    I use the EasyPic v7. it I priced at $149 and still in stock. Great board, no ZIF socket but I do a lot of work on it.

    Hardware debug work only with their debug hardware, at least that of how I...
  108. Replies
    36
    Views
    22,558

    [SOLVED !] Re: MPU6050 DMP, Accelerometer and Gyroscope Code

    Hi all,

    Old thread but definitely interesting. I got hold of an MPU6050. I did a search and this code came up. It looks so complicated, thanks to ronyintel for sharing his findings.

    What I am...
  109. Replies
    71
    Views
    10,356

    Re: Proton Compiler Button Toggle Procedure

    I would also have a good look and study Les code with Procedure. It is very neat, and if you need to alter something you do it inside the Procedure, which is way faster than looking through the code.
  110. Replies
    71
    Views
    10,356

    Re: Proton Compiler Button Toggle Procedure

    Amod,

    Now that you have submitted a piece of code, therefore you are trying to learn, I am ready to help.

    Your code works, but you may have noticed that when you pressed the button perhaps the...
  111. Replies
    71
    Views
    10,356

    Re: Temperature Controller Problem

    Amod,

    Please do not take it that I am going to be rude.

    However, I already said this and I am going to say it again.

    You never put up a piece of code, working or not, and put it here for...
  112. Replies
    71
    Views
    10,356

    Re: Temperature Controller Problem

    Yes, it can be done.
  113. Replies
    71
    Views
    10,356

    Re: Temperature Controller Problem

    Again Amod,

    You are missing to give a small program code which you think it works.

    Please forget the 7-segment display and instead write a small code that it prints to an LCD so I can track...
  114. Replies
    71
    Views
    10,356

    Re: Temperature Controller Problem

    Amod,

    I would suggest that you first write a small code that prints to an LCD. As LCD's are widely used, there is more chance that forum users can do test of your code and come up with a solution....
  115. [SOLVED !] Re: USB license key works on my win 10 and refuse to load on win 7

    Glad I was of help.

    Happy Easter to all!
  116. [SOLVED !] Re: 12F683 help needed reading values from GP4 and GP5

    Can you explain briefly what you want to do? I can see no Main loop and cannot understand what you are trying to do.

    Why are you writing to eeprom and than there is no read from eeprom?
  117. [SOLVED !] Re: USB license key works on my win 10 and refuse to load on win 7

    Have a look here maybe it can help you. It helped to solve similar problems to others.
  118. Re: PIC24FJ256GA705 Family Devices Are They Fully Supported in Proton 24 ?

    Entering Device = 24FJ256GA702 it turns blue in the IDE so it seems to be supported.
  119. Replies
    15
    Views
    271

    Re: Changing EDA software

    Have you considered EAGLE?
  120. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    That will make a superb add-on for this code!
  121. Re: Ports not working when using PORTA = %111111

    What PIC are you using?

    If using an 18F device try change PORTA to LATA and PORTB to LATB.
  122. Replies
    5
    Views
    182

    Re: PICD or other debugger questions

    Bob,

    Have a look at Snapshot. Do not know if it meets your requirements.
  123. Replies
    9
    Views
    210

    Re: How a PCB is made in China

    I have used ITEAD and lately cheaper, but very good quality, JLCPCB. For a prototype, if I am not in a hurry is not worth anymore to DIY, especially if it is double sided.
  124. Replies
    16
    Views
    537

    Re: Software to configer Fuses

    Gerard,

    Can you please stick to the rules and post all question / answer in English please?
  125. Re: Tesla acquires Maxwell for dry electrode technology?

    Converted my car to LPG. Here price is half that of petrol.

    Having said that I am waiting for my CH-R Hybrid. Hope it is enjoyable to drive as the Prius!
  126. Replies
    10
    Views
    160

    Re: Floating point addition problem

    Colin,

    Try to do instead of: -

    BasicFreq = 7038600

    make: -

    BasicFreq = 7038600.00
  127. Re: johngb has just uploaded Proton Studio Update 1.0.1.11!

    Thanks John.
  128. Replies
    11
    Views
    206

    Re: Ethernet to RS232 converter

    Following. Would like to use something similar.
  129. Replies
    26
    Views
    456

    Re: Valid time in NMEA sentance

    I use the M8N from u-Blox. I found to be very good, and cheap!
  130. Replies
    6
    Views
    1,232

    Re: GPS speed logger for RC planes.

    Good to know. I will buy a cheap GPS with a patch antenna and make some tests.
  131. Replies
    18
    Views
    303

    Re: I'm over the moon with joy. :-)

    Thumbs up Les.
  132. Replies
    14
    Views
    251

    Re: Wheelchair speed control

    Thinking about it, as you are monitoring the wheel rotational speed, you can used that in the ISR.

    Required speed is set by the joystick, so in the scaling, scale the joystick output to match...
  133. Replies
    14
    Views
    251

    Re: Wheelchair speed control

    Also please make the necessary tests. The code above was used into an RC fuel pump to test a gas turbine. For me it works, but maybe it needs same modification to suite your needs.
  134. Replies
    14
    Views
    251

    Re: Wheelchair speed control

    Here is how I did the scaling: -


    Dim Scale_dValueIn As Dword
    Dim Scale_dInMin As Dword
    Dim Scale_dInMax As Dword
    Dim Scale_dOutMin As Dword
    Dim Scale_dOutMax As Dword
    Dim...
  135. Replies
    14
    Views
    251

    Re: Wheelchair speed control

    The following is placed into a 1KHz interrupt routine.

    My motor, (which is not a brushless motor) has a starting PWM, which you will find as PW_Set in the code. Just left it there just in case you...
  136. Replies
    14
    Views
    251

    Re: Wheelchair speed control

    Important is to add acceleration and deceleration delay to smooth out abrupt movement.
  137. Replies
    6
    Views
    1,232

    Re: GPS speed logger for RC planes.

    David,

    I used this device because of the omni direction antenna. Sparkfun used to have those antennas. They are essential for flight because the GPS can be positioned in any direction.

    I looked...
  138. Thread: Pt100

    by joesaliba
    Replies
    4
    Views
    130

    Re: Pt100

    Thanks Tim,

    And that is why I got another controller because I couldn't find one PT50.
  139. Re: Advice needed - multiplexing 7 segment displays.

    Looking for these sensors I encountered these ready made units.

    Worth peanuts so I bought one, and they use the K-type thermocouple.

    For longer leads I also bought another K-type thermocouple.
  140. Re: Advice needed - multiplexing 7 segment displays.

    Fanie,

    Have a look here for low cost PT100.

    Also, as I said, the problem with this car booth spray was a wire.

    The sensor reading was around 57ohms at 14deg room temperature, so I assume at...
  141. Thread: Pt100

    by joesaliba
    Replies
    4
    Views
    130

    Pt100

    I went to look a car booth spray temperature controller as readings where incorrect. Turned out to be a wire. However, I would like to buy some spare sensors just in case the one fitted goes wrong.
    ...
  142. Re: Advice needed - multiplexing 7 segment displays.

    A few years ago I took Fanie circuit diagram and made a PCB for it. If someone needs it I can share EAGLE files.
  143. Replies
    30
    Views
    419

    Re: 3D printer. Yey!!!!

    I printed PTEG and is very strong, though a bit more flexible. Never did ABS.

    I also printed with wood filament. It comes out very nice. You have to change the nozzle to 0.6mm. I have settings for...
  144. Re: Dongle Issues with Windows 7 64 Bit. Making it difficult to use already purchased

    Elliot,

    Have a look at this Wiki link. 98% of who had trouble installing the Sparkey drivers for the dongle solved the issue.
  145. Replies
    3
    Views
    96

    Re: Uninstall plugins

    There is a folder: -

    C: > User > username > AppData > Roaming > PDS > PlugIn

    Make sure you can view hidden files and folders. Perhaps you need to delete this folder to remove all plugins.
  146. Replies
    6
    Views
    132

    Re: A very Merry Christmas to you all

    Happy Christmas Les and family and everyone on this forum. Wish you health, prosperity and happiness.
  147. Replies
    6
    Views
    147

    Re: It is almost Christmas

    Merry Christmas and a Happy New Year to all!
  148. Re: Detecting for the presence of pulses not using interrupts

    I read that you are going an alternative route but....

    I do not think that analog will work. You said that when the fan stops, no pulses, the analog value goes up indicating that the fan had...
  149. Re: Can't change duty cycle on CCP2 (PORTC.1) PIC18F46K20 HPWM 2

    Have a look at this thread maybe it is a similar problem.
  150. Replies
    14
    Views
    289

    Re: Driving 2 LCD Modules from 1 CPU

    Zip the files first and then you can upload them.
  151. Replies
    12
    Views
    349

    Re: Procedures in the 8-bit Proton Compiler

    Les,

    I never used Procedures as of until now I have not used the P24. Having said that I am ready for a donation and begin using Procedures, if I do understand how they work.

    One question! The...
  152. Replies
    17
    Views
    506

    Re: RS485 transmission

    I have some 487 and will use these half duplex. Thanks for your help, much appreciated.
  153. Replies
    17
    Views
    506

    Re: RS485 transmission

    Yes, had same thought. Will use 24v and drop to 5v. But MAX488 power supply will be 5v, correct. Read somewhere else that powering a MAX488 with 12v are just on the edge of burning them.

    And no,...
  154. Replies
    17
    Views
    506

    Re: RS485 transmission

    Will it be ok to power up to four PIC's with RS488 and transmission with 350m of CAT5 with 5v power over the CAT5?
  155. Replies
    7
    Views
    360

    Re: Log in problems again.

    Using Edge I never log out and never had a login issue.
  156. Re: Can the PRINT command halt program execution??

    If `sign' is a variable then you can do the following: -

    sign = $2D ' This is for a `-' sign

    or

    sign = $2B ' This is for a `+' sign

    Then: -
  157. Replies
    41
    Views
    653

    Re: Advertisement on the forum

    I'm in too.
  158. Replies
    17
    Views
    506

    Re: RS485 transmission

    Thank you Gamboa. Very kind of you to share the code. I will study it and try to implement it in my design.
  159. Replies
    42
    Views
    859

    Re: Web site advertising

    Ok. Once I did the reply now the link is active. Before it was more like a picture, couldn't even select the text.
  160. Replies
    42
    Views
    859

    Re: Web site advertising

    Lester,

    I am trying to sign to Amazon prime but there is no link when you read the forum. However the link appears when I am doing this reply.
  161. Replies
    17
    Views
    506

    Re: RS485 transmission

    I am going to use around 300m of CAT5 wire @ 9600 baud rate. Should I go lower than 9600?
  162. Replies
    17
    Views
    506

    Re: RS485 transmission

    The problem is that I cannot use Les's Buffered_Hserin, and I do not know the reason why.
  163. Replies
    17
    Views
    506

    Re: RS485 transmission

    So I had to shelf this project for a couple of months, but now I need to get it going.

    I setup two MAX488 for full duplex and it works as expected using HRSout and HRSin.

    I wanted to use the...
  164. Replies
    33
    Views
    3,484

    Re: Multiple functions by a single switch

    Try this one: -


    Declare Reminders Off
    @ CONFIG_REQ = 0 ; Override Compiler's configuration settings
    Asm-
    __Config _Config1, 0x20D4 ;FOSC_INTRC_NOCLKOUT & WDTE_OFF & PWRTE_OFF & MCLRE_OFF &...
  165. Replies
    42
    Views
    859

    Re: Web site advertising

    This morning there are no adverts.
  166. Replies
    33
    Views
    3,484

    Re: Multiple functions by a single switch

    Which oin of the PIC are you using for the decimal point? Is it set as digital output?
  167. Re: SHIN generates ASM ERROR with the 16F18877

    Is that a new website for PDS information?
  168. Replies
    33
    Views
    3,484

    Re: Multiple functions by a single switch

    I came up with some code, not tested but should work.

    Two important things: -

    1. Wheel_Value is the value of your thumb wheel. You have to see how to acquire this setting of the thumb wheel and...
  169. Replies
    17
    Views
    336

    Re: P24 (using Procedures) for 18F Pics??

    Same here .
  170. Replies
    33
    Views
    3,484

    Re: Multiple functions by a single switch

    Can you please explain connection of thumbwheel switch? And when to start the counter? When you press a push or something similar.
  171. Replies
    33
    Views
    3,484

    Re: Multiple functions by a single switch

    The code in post #4 is what it do!
  172. Replies
    33
    Views
    3,484

    Re: Multiple functions by a single switch

    So my example code works for you. I used that method long time ago and it works, maybe it needs some tweaks but it works. If you have an LCD attached it is even better because you can see at what...
  173. Replies
    33
    Views
    3,484

    Re: Multiple functions by a single switch

    The following code will go through five different function upon your selection. This was a quick code just to let you think about it. NOT TESTED but should work.


    Dim Sele As Byte = 0
    Dim Time...
  174. Re: Les has just uploaded Proton Compilers Full Installer - Proton 3.6.2.6 - Proton24

    Thanks Les!
  175. Replies
    2
    Views
    163

    Re: exception on (bypass) clear command

    Before I read the eeprom part I was thinking the same, write to eeprom and then retrieve it. If you are running out of eeprom space you could use a CWrite, but I never used it so cannot give you...
  176. Replies
    7
    Views
    216

    Re: Watchdog timer

    Thank you all for your help.

    I couldn't agree more with Mellbreak, nice summary Stephen, thanks.
  177. Replies
    7
    Views
    216

    Re: Watchdog timer

    @Dave: - Thanks for that. So I assume that DOGTIME is the time the watchdog is set.

    @Tumbleweed: - I am able to set it via the config settings, what I am unsure is if I have to place the CLRWDT...
  178. Replies
    7
    Views
    216

    Watchdog timer

    I have a code that basically looks for four input and four outputs, depends on various timing and input conditions. I use interrupt and some delays in main code.

    I was thinking to add a watchdog...
  179. Thread: Simple timer

    by joesaliba
    Replies
    29
    Views
    2,232

    [SOLVED !] Re: Simple timer

    I had seen what you wrote before you edited the post.

    Have a look at my comment in post #15 regarding printing and interrupt. You are all correct in what you are saying.
  180. Thread: Simple timer

    by joesaliba
    Replies
    29
    Views
    2,232

    [SOLVED !] Re: Simple timer

    Exactly. See my comment in post #18.

    This week I just done a controller / timer for a jacuzzi. As I am using the same button to start or stop before the time elapse I use a couple of timers within...
  181. Thread: Simple timer

    by joesaliba
    Replies
    29
    Views
    2,232

    [SOLVED !] Re: Simple timer

    I am sorry but I cannot help you with this code. I did my best to come up with a working code and believe me I spent quite some time, I know the code I posted works so not going to see this code.
  182. Thread: Simple timer

    by joesaliba
    Replies
    29
    Views
    2,232

    [SOLVED !] Re: Simple timer

    See Mos,

    As I said earlier you cannot do the Print in the loop to show the remaining time as this is time consuming and instead of say, 45 seconds, you end up with 80 seconds. I know because I...
  183. Thread: Simple timer

    by joesaliba
    Replies
    29
    Views
    2,232

    [SOLVED !] Re: Simple timer

    Ok. I think I came up with something you desire.

    I think I also found an anomaly within the compiler which I will be posting in another thread if my findings are correct, at least with 18F...
  184. Thread: Simple timer

    by joesaliba
    Replies
    29
    Views
    2,232

    [SOLVED !] Re: Simple timer

    Ok now I think understand.

    I will try something else later.
  185. Thread: Simple timer

    by joesaliba
    Replies
    29
    Views
    2,232

    [SOLVED !] Re: Simple timer

    I did some code, tested on real hardware and it works. It is doing what I understand what you want.

    Please note the following: -

    in my case, I had to use different pins: -

    To start the pulse...
  186. Replies
    25
    Views
    281

    Re: Delphi or Visual Studio etc. ?

    I did not done too many applications, but the one I have made I used Visual Basic.

    I needed a gauge and used DotNetBar with Visual Studio. Just have a look here and see how you can turn a simple...
  187. Thread: Simple timer

    by joesaliba
    Replies
    29
    Views
    2,232

    [SOLVED !] Re: Simple timer

    I will try to come with something tomorrow, too busy today.

    When the counter reach zero, how long should the pulse stay ON?
  188. Thread: Simple timer

    by joesaliba
    Replies
    29
    Views
    2,232

    [SOLVED !] Re: Simple timer

    Post your code and please explain a bit better what you want.
  189. Thread: Symbol

    by joesaliba
    Replies
    21
    Views
    360

    Re: Symbol

    I do not have that PIC, but it is similar to 18F26K22, but with more pins.

    The following compile with no errors. Can you check it out?

    Stack underflow has nothing to do with the code I...
  190. Thread: Symbol

    by joesaliba
    Replies
    21
    Views
    360

    Re: Symbol

    What PIC are you using? The code I posted is from a copy and paste working code, so if you copy and paste and change to your PIC it should work.
  191. Replies
    2
    Views
    215

    Re: Anomaly reports

    Ok. Better to know.

    Thanks.
  192. Thread: Symbol

    by joesaliba
    Replies
    21
    Views
    360

    Re: Symbol

    Same as I suggested. I think it is the only method.
  193. Thread: Symbol

    by joesaliba
    Replies
    21
    Views
    360

    Re: Symbol

    I do not think you can as you have mixed PORT.

    Having said that, I think once I read somewhere on the forum where two ports can be `added together', but cannot find it.
  194. Thread: Symbol

    by joesaliba
    Replies
    21
    Views
    360

    Re: Symbol

    Load my example into your development board, change the PIC to the type you have, and you will see that it works.

    The code I posted mimics your pin input as well. If I press PORTC.3, PORT0 will be...
  195. Thread: Symbol

    by joesaliba
    Replies
    21
    Views
    360

    Re: Symbol

    You cannot work as the code you posted.

    You need that from time to time you go and RELOAD PORT0 with the state of the pins.

    Have you seen my WORKING example?

    I Gosub Comp every 100ms to...
  196. Replies
    2
    Views
    215

    Anomaly reports

    I cannot find the anomaly reports shortcut. Usually it was under `Forum Action' if I remember.
  197. Thread: Symbol

    by joesaliba
    Replies
    21
    Views
    360

    Re: Symbol

    This tested and work: -


    Device = 18F26K22 ' Device selected

    Xtal = 16 ' Selected frequency

    OSCCON = %01111000 ' Set internal...
  198. Thread: Symbol

    by joesaliba
    Replies
    21
    Views
    360

    Re: Symbol

    Depends the state of the pins. If all of them is 0, then PORT0 will be 0.

    I have a working code like that. Will dig part of a large code for you to see.
  199. Thread: Symbol

    by joesaliba
    Replies
    21
    Views
    360

    Re: Symbol

    I use the following method and it works. I also use it with a Word variable as I exceed 8 pins: -


    Dim PORT0 As Byte = 0

    Symbol Pin_1 = PORTA.0
    Symbol Pin_2 = PORTA.1
    Symbol Pin_3 = PORTA.2...
  200. Replies
    30
    Views
    419

    Re: 3D printer. Yey!!!!

    Les,

    As I suggested in post #2 Fusion 360 is impressive, at least from my perspective.

    As a printer I have the Creality CR10S. I heard some good things about the Ender.
Results 1 to 200 of 1000
Page 1 of 5 1 2 3 4