Search Results - Proton BASIC community web site


Search:

Type: Posts; User: Tim

Page 1 of 5 1 2 3 4

Search: Search took 0.15 seconds.

  1. Replies
    5
    Views
    119

    Re: Ad blocker is off but forum thinks it's on

    I'm not seeing the same issue. Ad blocker off and no warnings.
  2. Replies
    2
    Views
    266

    Re: Message Regarding Adverts

    Can I make a contribution to keep the forum going. It will in anyway make big dent in the costs but if it keeps it running for a couple of weeks it would I hope help.
  3. Replies
    12
    Views
    397

    Re: Phase offseting PWM to prevent noise on fans

    Hi,

    I put a scope on the test rig I use to test my boards and ancillaries and looked at the 12V line. I was getting 200mv ripple. You could see the bounce on the wave as the PWM was triggered. ...
  4. Replies
    3
    Views
    197

    Re: Mosfet protection diode for a pump?

    Thanks all

    Will add the diode

    Tim
  5. Replies
    3
    Views
    197

    Mosfet protection diode for a pump?

    Hi,

    I need to turn on and off a pump. 12v 300ma. Do I need a protection diode on the mosfet? Solenoids etc I add them. Not sure about pumps though.

    Thanks

    Tim
  6. Replies
    12
    Views
    397

    Re: Phase offseting PWM to prevent noise on fans

    Thanks everyone

    Looking at the delay chips they seem to have short delays in the ns range. I need around 8 ms. Another issue is I need different delays. 8ms, 16ms, 24ms etc one for each fan.
    ...
  7. Replies
    12
    Views
    397

    Re: Phase offseting PWM to prevent noise on fans

    Hi Les

    The Freq is 20khz. Also I do not have 5 extra spare pins to drive the fans. I have one line and want to introduce a delay in that line to 5 take offs.

    Tim
  8. Replies
    12
    Views
    397

    Phase offseting PWM to prevent noise on fans

    Ok it was a odd title but it describes my issue.

    I have 6 high power 12v fans that can pull up to 2.4amps. They are controlled via a PWM signal that even at the highest level is still a PWM it...
  9. Thread: Fusion 360

    by Tim
    Replies
    20
    Views
    464

    Re: Fusion 360

    Thanks Simon

    I will check them out.

    Tim
  10. Thread: Fusion 360

    by Tim
    Replies
    20
    Views
    464

    Re: Fusion 360

    Welcome to the world of eye watering service contracts.

    I used to pay several firms 200 each for cad etc updates. No longer.

    As an aside try renting welding gas supplies. Argon refill >80 on...
  11. Replies
    20
    Views
    541

    Re: Playing with Procedures

    From the little I know by talking to someone who wrote a compiler that handles "proper" procedures and local variables.

    The compiler has to follow the paths of calls etc to see if a variable is...
  12. Re: HISPEED SERIAL BACKPACK Need help/Recommendations

    For the sake of a couple of lines of code you prevent a once in 100000 occurrence which in practice will happen a lot more often. If you sell a product one failure will make you regret not adding it.
  13. Re: HISPEED SERIAL BACKPACK Need help/Recommendations

    I note that you have no error handling in the Int routine.

    No matter what you do, you have to check for buffer over run and clear it.

    First line in my usart interrupt is always

    If OERR = 1...
  14. Re: HISPEED SERIAL BACKPACK Need help/Recommendations

    Thinking about this. You are using interrupts to RX the data and the pic is ignoring data sent to it then I would say something is not right in the initialization of the USART. I have not looked...
  15. Replies
    27
    Views
    449

    Re: New Prusa mini 3D printer

    Hi George

    I really try hard not to spend money on stuff I will not get value from. That said I have a lot of parts I never used but they are R/D kit like demo boards and sensors.

    The main...
  16. Replies
    27
    Views
    449

    Re: New Prusa mini 3D printer

    That looks like it is the product that will finally get me into 3d printing.
  17. Thread: SMS Number Save

    by Tim
    Replies
    19
    Views
    571

    Re: SMS Number Save

    Can you clarify the bit "I am not sure how to make the contents of a string variable into text"

    A string is ascii eg text

    Tim
  18. Replies
    12
    Views
    2,886

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

    Hi Joseph

    I will have to hunt through my code and memory to figure out what I was using it for so I can see what I have in code.

    Tim
  19. Replies
    88
    Views
    576

    Re: Les's ILI9325 Wiki code

    Sorry I have not double checked but does the ILI9325 use the parallel lines or spi? I want fastest transfer rates as possible

    Thanks

    Tim
  20. Replies
    9
    Views
    82

    Re: Pic to pic connections

    Hi David

    Yes I could scan less frames, but there is the issue of coms still. I do not want to be disturbed by an interrupt asking me to reply on SPI. Sure if there was a cost implication I could...
  21. Replies
    9
    Views
    82

    Re: Pic to pic connections

    If you look at the code Proton produces its as good as it gets. I cannot write better ASM. There is no optimization to be had.

    Pic 1 is constantly reading data from another device. That devices...
  22. Replies
    9
    Views
    82

    Re: Pic to pic connections

    Thanks Rick

    Yes it is parallel coms and it is only one way eg Pic 1 out. I need to spend as little time as possible on Pic 1 communicating data.
    I was thinking about adding another pin to say...
  23. Replies
    9
    Views
    82

    Pic to pic connections

    Hi,

    I have a need for one pic to talk to another pic. Simple right SPI, rs232 the protocols are endless. However in my case there is an issue

    Pic 1 is busy, I mean real busy. 64mhz busy. Sure...
  24. Re: LM1881 How to detect the start of a new video frame?

    Hi

    I connected the board up and looked at the signals being generated Pictures below

    The Vsync generates a signal as per the Lm1881 sheet but it generates a number of them in another place as...
  25. LM1881 How to detect the start of a new video frame?

    Hi


    I'm working on a project that will use the LM1881 sync separator. One of the tasks I need to do is count the horizontal lines to know what line I'm on.
    There is a signal generated for every...
  26. Re: Individual power supply smoothing or a dedicated board

    Thanks every one

    The fans are 12v DC Brushless. They can draw up to 2.4 amps each. As can be seen from this AN doc...
  27. Individual power supply smoothing or a dedicated board

    Hi,

    I have a system that powers a number of high power fans at 12v and PWM's them to control the speed.
    The fans run at 12v, the incoming voltage. All that high current fan driving makes noise...
  28. Replies
    9
    Views
    76

    Re: CWRITE and 18F25K50

    Hi,

    Cwrite needs 2 things to work properly

    1 The start address has to be on the right boundary address
    2 You have to write all X bytes or the final section of code to instigate the actual...
  29. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Hi Steve

    I was thinking about the whole system and figured that I could build it nearly all from discrete components

    Basically wire up the line sync to the clock of a bin counter and the frame...
  30. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Hi See Mos

    I agree I really need to amp the signal. I ran a sim and my results were much like yours but the decay was longer. The signal showed I sample just at the end of where the large section...
  31. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Hi Rick

    The issue with those devices is the need for a lens. The camera I'm looking at comes with many types of lenses. I'm going for a 62 deg as my maths shows that will be enough. The other...
  32. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Hi Steve

    The timing is not an issue as I see it. Wait for the line sync signal (rising edge) then set a timer of just a delay (were talking approx 25us to get to the area I'm interested in....
  33. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Hi,

    Yes tried it. I have tried just about everything. I have draw full of demo cards for chips.

    The optical camera system I see as the simplest and most reliable.
  34. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Hi Steve

    The shield enables you to use the lm1881 to get the sync signals from the video so you can time driving a digital signal into the video output.

    I can use this function to establish my...
  35. Replies
    23
    Views
    88

    Re: Pal signal sampling

    I found a shield that enables you to use overlays and considering you can place pixels on the screen to the accuracy I need I see no issue why I cannot sample the video signal at the same point.
    ...
  36. Replies
    11
    Views
    62

    Re: Current thinking on USB bootloader

    Hi Steve

    Does your PC go dong when you connect? And can be seen under system? if so then we can get the rest going without to much issue. What pic did you use in the end?

    Tim
  37. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Hi Steven

    That would work. I would need to count the lines but the LM1881 or its newer brother can provide the signals to help with that.

    I could though use an A/D to do the job instead of a...
  38. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Hi Steve

    I think speed will not be the main issue apart from servicing the coms I have. Although I could just send it via usart with no real overheads.

    My issue with Pal no is can I get the...
  39. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Thanks Ken

    That chip will be very handy. All the signals I need.

    Tim
  40. Replies
    23
    Views
    88

    Re: Pal signal sampling

    Hi Dave

    I'm looking at around 80 - 100 mm with a resolution of < 1mm.

    I have tried a pressure sensor in the past but found that just sitting on the table doing nothing the drift was way to...
  41. Replies
    23
    Views
    88

    Re: Pal signal sampling

    I forgot to say the reason I'm looking more at the pal over the OV is that I can see the results better with the pal as I can view it with a monitor and converter.

    In reality the OV2640 gives me...
  42. Replies
    23
    Views
    88

    Pal signal sampling

    Hi,

    On my many years long quest to solve a problem I'm looking at now sampling a Pal signal.

    First off big thanks to Norm for his help so far. :) I lot of these ideas I got from him and now...
  43. Replies
    11
    Views
    62

    Re: Current thinking on USB bootloader

    Is that the original usb loader?
  44. Re: Looking to commission some code to interface to OV2640 or OV7670 camera module

    Hello Normet

    Any code I'm happy to pay for. At the moment I have an OV2640 module on the way but after checking out dimensions think a OV7670 camera on its own that I will build onto my board...
  45. Looking to commission some code to interface to OV2640 or OV7670 camera module

    Hello people.

    Does anyone know of someone who I can commission to write some basic code to talk to the OV2640 or OV7670 camera module.

    There is Arduino code out there but I'm looking for it in...
  46. Replies
    9
    Views
    80

    Re: Using procedures, best practices

    Hi

    From my very little experience with procedures the biggest issue is with the 32 char limit on variable names. But that would not be the issue here.

    I cannot see why it does not work. The...
  47. Replies
    11
    Views
    62

    Re: Current thinking on USB bootloader

    Hi See_Mos

    I have bootloader code your welcome to. It runs on later versions of the compiler. Unlike the published version. The PC application of the original on the wiki will be compatible. I...
  48. Replies
    18
    Views
    104

    Re: Thermistor Steinhart-Hart linearisation procedure for Proton BASIC

    Hi See_Mos

    I did the maths and yup it looks good. I can set the Internal Vref to 4.2v and that gives me the best range and resolution.

    Many thanks it looks doable!

    Tim
  49. Replies
    18
    Views
    104

    Re: Thermistor Steinhart-Hart linearisation procedure for Proton BASIC

    Hi

    I have that part already. The problem I'm worried about is when I run a sim in Labcenter with a 100k PTC device and a 100k on the other side in the divider and look at the voltage ranges I get...
  50. Replies
    10
    Views
    72

    Re: Stand alone magnifier

    I'm Dyslexic, Google spell checking works for me. If that fails to do the job properly I do not care. Life's too short to worry about typos.
  51. Replies
    18
    Views
    104

    Re: Thermistor Steinhart-Hart linearisation procedure for Proton BASIC

    Thanks Les

    One thing looking at the parts and doing a sim or 2. I need an amplifier to get a usable signal. 10 bits over 0-5v with the signal only covering 1v in range is not an option.


    Tim
  52. Replies
    10
    Views
    72

    Re: Stand alone magnifier

    I purchased one following seeing this thread. Did my first soldering job with it.

    My thoughts

    1 Overhead illumination is not perfect, so when I find a torch going to try what Les recommended...
  53. Replies
    18
    Views
    104

    Re: Temperature sensing 100-160c

    Thanks Les

    They are the ones I have been looking at on the Farnell site. The data sheet I have been looking at has data for me to generate a lookup table.

    They are coming in around 3 so that's...
  54. Replies
    18
    Views
    104

    Re: Temperature sensing 100-160c

    Ken

    As I said in my first post I am using a RTD already, I need a very simple sensor to just get a ballpark temp.

    normnet

    Thermocouples need a stable cold junction temperature, as I said to...
  55. Replies
    18
    Views
    104

    Re: Temperature sensing 100-160c

    Thanks...

    Devices like that have their own temperature limitations in that they cannot get hot. I'm working mm from a part that is 150oc and it needs to be keep hot by insulation so having holes...
  56. Replies
    18
    Views
    104

    Temperature sensing 100-160c

    Hi,

    On a project I have a platinum temperature sensor circuit for fine resolution temperature sensing but I also want a basic temp sensor to monitor a parts temperature. I use the chip type in...
  57. Re: Code generated by 3.7.0.8 not fitting in 18F24K22

    I still have code from 2010 that I use the compiler from then to maintain. Code size is one of the reasons I have to use that original compiler.

    It is normal though every compiler has the same...
  58. Replies
    2
    Views
    36

    Re: Driver for SSD1289 for Pic 24/32 in Proton

    Just to add that I could use this device ILI9341 Like in this device Here
  59. Replies
    2
    Views
    36

    Driver for SSD1289 for Pic 24/32 in Proton

    Hi,

    Before I commission someone to write a driver for me is there a .inc file for the SSD1289 TFT screen. Like this one https://www.sainsmart.com/products/3-2-tft-lcd-touch-screen-with-sd-slot
    ...
  60. Replies
    11
    Views
    55

    Re: Setting the A/D range to 1Volt range

    Thanks all,

    After some checking I find I need to read 20-24 of the sensors. So having an op amp for each is not really ideal.

    Stephen Moss I think you have the solution. I will check that out....
  61. Replies
    11
    Views
    55

    Setting the A/D range to 1Volt range

    Hello..

    I'm reading a hall effect sensor and it is producing a range of 2-3v as an output signal. It has a steady state of 2.5v and deviates +/- depending of the position of the polls I know I...
  62. Replies
    21
    Views
    75

    Re: 16 leds to drive, how?

    That would a great solution. But "400-700nm wavelength range " rules out the 940nm IR I'm using.
  63. Replies
    21
    Views
    75

    Re: 16 leds to drive, how?

    Hi Les

    There is no flow meter that costs less than 900 that can measure to the accuracy.

    I need to accurately measure to 0.1ml accuracy in the range 0-9ml

    Tim
  64. Replies
    21
    Views
    75

    Re: 16 leds to drive, how?

    Shantanu

    It looks like you have not been following this fully :)

    The idea is to create a flood of ir light on one side. The sensors are pressed up against the tube and will unless the IR can go...
  65. Replies
    21
    Views
    75

    Re: 16 leds to drive, how?

    Hi

    I and others have shown that the system works well and the important settings are the feed resistor on the sensor and the power of the ir output. Too much IR is the main problem seen so far.
    ...
  66. Replies
    21
    Views
    75

    Re: 16 leds to drive, how?

    Hello Shantanu

    It's not HVAC is for use with purified water (WFI standard) so pure it's corrosive!

    But staining of the glass is something I'm thinking about.

    I spoke to a friend of mine...
  67. Replies
    21
    Views
    75

    Re: 16 leds to drive, how?

    Hi Les

    Note I'm driving 16 leds


    This is a long running project I need to measure the height of water in a tube to ~1 mm resolution. So I have 96 ir sensors stacked 0.8mm apart. On one side of...
  68. Replies
    21
    Views
    75

    Re: 16 leds to drive, how?

    Hi Les

    Good point. I aim to scan the 96 inputs at 20hz with say a 10 over scan for averaging.

    So that's 960 x 20 so that's a 19,200 adc samples a second. The cap filter should be faster than...
  69. Replies
    21
    Views
    75

    Re: 16 leds to drive, how?

    Thanks Stephan

    The system I'm building is a bank of 96 ir receivers multiplexed through to a pic ADC pin. The Ir leds will flood the ir receivers that lie around 20 mm away. As water rises up a...
  70. Replies
    21
    Views
    75

    Re: 16 leds to drive, how?

    The one thing I forgot to mention is they are Ir leds and I'm using them to supply a backlight to measure the drop through water. So they need to be constant current. No PWM as that will give timing...
  71. Replies
    21
    Views
    75

    16 leds to drive, how?

    Hi,

    I have 16 ir leds to drive. The issue is I want as part of the development to have a adjustment of the brightness as I could flood the receivers.

    The part is...
  72. Replies
    15
    Views
    74

    Re: Changing EDA software

    What I can do is swap licenses. When running a VSM swap back to my old licence and run in 7.1. It is just a min in licence manager.
  73. Replies
    1
    Views
    13

    Re: Many, many thanks Tim

    Hi Les

    That's really good of you to say so here. In reality I'm using you as a dumping ground for my build up of comps from old projects. ;)

    If you want a few large steppers I can send them up...
  74. Replies
    15
    Views
    74

    Re: Changing EDA software

    Ref EDA

    Just spoken to Labcenter and its not good.

    I have to either pay 700+ to update my licence to the latest version inc VSM support or 295 for the PCB stuff and lose my VSM. I was hoping...
  75. Replies
    15
    Views
    74

    Re: Changing EDA software

    Hi Ricardo

    Yup exactly same including the opto sensor. Hmm your not working for a rival company are you ;)

    I see you are using 2 resistors per opto they must be tiny 0405? What wiring did you...
  76. Replies
    15
    Views
    74

    Re: Changing EDA software

    Hi, Thanks everyone for your input

    I have now ruled out KiCad as I just could not get on with it.

    Ricardo that really nice of you to offer. The thing is that the pcb is a pain, not because it...
  77. Replies
    15
    Views
    74

    Changing EDA software

    I forever have used Labcenter Proteus. But my licence is old and limited to 500 nets. I need 600 on a current job so my options are

    1 Buy a newer version 295 (absolute basic)
    2 Learn something...
  78. Replies
    20
    Views
    122

    Re: Use of the Proton 3.7.0.3 version

    Hi,

    Late in on this. I want to pay whatever is needed. Not 100% sure how.
  79. Replies
    0
    Views
    18

    Software validationeseem

    Hi,

    I provide products to a industry that has a few regulations. I do not suffer much now from them as I provide equipment that is more plumbing and just conforms to one of the regs. I supply what...
  80. Thread: Vl6180x

    by Tim
    Replies
    8
    Views
    55

    Re: Vl6180x

    Hi Les

    In one of the box's I'm going to send you this week there is a VL6180 deve board in there.
  81. Replies
    19
    Views
    54

    Re: Diffuser IR Leds (how)

    Hi Craig

    IR sensors work, I have used them detecting water in a pipe. Admittedly the pipe was 6mm not 13mm but it worked. An LDR is not know to work and covers 10x the area I need to detect. It...
  82. Replies
    19
    Views
    54

    Re: Diffuser IR Leds (how)

    I'm not worried about the surface tension. I will be only measuring in the middle.
  83. Replies
    19
    Views
    54

    Re: Diffuser IR Leds (how)

    Hi Les

    No Acrylic involved in the diffuser.

    Below is picture of the tube backlit by an led strip they are around 15mm apart. In front of the leds (set back 6mm) is a sticker with white semi...
  84. Replies
    19
    Views
    54

    Re: Diffuser IR Leds (how)

    Hi Les

    The issue is that you cannot see the whole column properly up close. If you can stand back enough and have perfect lighting and resolution it might work.

    But get up close and you need a...
  85. Replies
    19
    Views
    54

    Re: Diffuser IR Leds (how)

    Hi, Lots of good tips.

    Some more info before I look through them some info perhaps missed.

    The RD work is to produce a product I need to sell. So I have to source parts that I can get easily. ...
  86. Replies
    19
    Views
    54

    Re: Diffuser IR Leds (how)

    Hi,

    Just to address a few important points. I need it to be solid state, mechanical movement is not a good idea as it will add cost and reduce reliability and be bulky.

    Cameras will not work...
  87. Replies
    19
    Views
    54

    Diffuser IR Leds (how)

    Hi....

    My task (still! :( ) is to measure the water level in a tube to high accuracy. One system I know works is to use a slot opto sensor. But they are expensive and way to big. My resolution...
  88. Re: What to do with electronic comps I'm not going to use

    Thanks Les great for them to go to a good home.
  89. What to do with electronic comps I'm not going to use

    I'm having a big clean out and it has become obvious I have a problem. I think of a design buy some comps, maybe get round to building something then the leftovers pile up. Over and over again.
    ...
  90. Replies
    18
    Views
    94

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

    Les got there first !

    I think I got it wrong any case
  91. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    To answer the questions

    1 The level changes all the time at any time
    2 The water is pure so non conductive and 1 mm resolution is need
    3 The water column is always sealed to atmosphere unless...
  92. Replies
    14
    Views
    94

    Re: Wheelchair speed control

    Just to add that the simple algo worked when there was no loading. In your case I suspect that going up a hill it would not work. And when I wrote a speed controller for a mixer motor that used as AC...
  93. Replies
    14
    Views
    94

    Re: Wheelchair speed control

    From my experience I have never had luck with PID's

    In the end I found that a simple system works best

    X = desired speed.
    Y = current speed.

    So every x ms inc the current speed until x is...
  94. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    May be something like this would work for my stepper linear system

    https://www.ebay.co.uk/i/332647887284?chn=ps
  95. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    In my application the volumes are very small and effected by many effects like surface tension. I see no easy solution. A stepper motor and say 5 opto sensors would work 100% and I may end up doing...
  96. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    Hi David

    Even reading the specs and watching the videos I was on the edge of what could be achieved. Initial experiments using the demo board had a small change register. Flushed with that success...
  97. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    Hi David

    I was using the FDC1004 The sensor PCB (pic below) was immersed in the water. Due to the volume of water I am using I have to work to around 1mm precision. When I rigged up the test board...
  98. Thread: Barking dog

    by Tim
    Replies
    13
    Views
    73

    Re: Barking dog

    This may be of interest

    https://www.grc.com/tqc/thequietcanine.htm

    The reality is with the inverse square law, unless you are a meter front of the pest you're unlikely to get enough power to do...
  99. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    What I was thinking was moving up and down to find the edge then jiggle to keep track of it.
  100. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    Hi John

    I was looking for one of those but they do not seem to be available. Then found the TSL1401CL
  101. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    The next possible solution is a belt driven by a motor and a light sensor that tracks the level. But I'm looking for a solid state solution.
  102. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    A float would be the ideal solution and on a part of the same project I do have a float. It uses hall effect sensors and a magnet in the float. But at this exact location in the design I am up...
  103. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    My use is to try and measure the height of water to 1 mm accuracy. It relies on refraction and how light passing through a tube gets magnified. So the small strip in the middle gets enlarged.

    For...
  104. Replies
    25
    Views
    75

    Re: HAs anyone used the TSL1401CL linear sensor?

    Thanks Les

    I have one on order when it arrives I will send it to you and get one another one for myself.

    Tim
  105. Replies
    25
    Views
    75

    HAs anyone used the TSL1401CL linear sensor?

    Hello people,

    Has anyone used the TSL1401CL linear sensor? It is most likely found in an a unit like this:-

    3615

    Reading the PDF it seems you control it using the clock to change charge time...
  106. Thread: Pt100

    by Tim
    Replies
    4
    Views
    43

    Re: Pt100

    I'm not sure where you get them but PT50 is a thing.

    https://www.technocontrols.com/wire-wound-rtd-elements.html
  107. Replies
    10
    Views
    961

    Re: Suggestions for pic microcontroller

    1 ADC? How much memory

    https://www.microchip.com/maps/Microcontroller.aspx
  108. Re: Detecting for the presence of pulses not using interrupts

    As I said about the PCF8574, 30khz interrupts. Not a practical idea.

    Ref the 18F26K42, I do not have the VSM for it in ISIS. As I can do all I need with a simple 16F device no need to use anything...
  109. Re: Detecting for the presence of pulses not using interrupts

    Hi Joseph

    Yes the chance of it stopping on a low is possible. So will be using a pic and just read the pulses really fast in loop looking for a signal change.

    Looking at what I need exactly its...
  110. Re: Detecting for the presence of pulses not using interrupts

    I looked at the data sheet for the PCF8574, it seems it just generates an interrupt when there is a pin change. You have to then read it to figure out the pin that has changed.

    Considering the...
  111. Re: Detecting for the presence of pulses not using interrupts

    Thanks for both the suggestions. I'm going to look at the PCF8574 as that would mean I would not need so many wire back to the control board.
  112. Detecting for the presence of pulses not using interrupts

    I'm looking for a simple system to detect the presence or not of low going pulses.

    The task is to detect if a fan is still running. I do not need to detect the speed, just if its still rotating....
  113. Replies
    12
    Views
    97

    Re: Procedures in the 8-bit Proton Compiler

    Considering the benefits I get from Proton. You have my money every day of the week..

    Thanks so much for supporting the compiler.
  114. Replies
    41
    Views
    249

    Re: Advertisement on the forum

    I'm happy to donate and have adds.
  115. Thread: PICKitPlus Forum

    by Tim
    Replies
    38
    Views
    1,089

    Sticky: Re: PICKitPlus Forum

    May seem dumb but where is a link to a download?

    BTW I'm happy to donate and will do.
  116. Replies
    9
    Views
    78

    Re: Bit bash SPI master and slave.

    Some info on how you use it.

    The slave once set up sits with its state machine in wait for first byte state.
    When the SPI line is pulled low the pic then clocks in the data from the master. Once...
  117. Replies
    9
    Views
    78

    Re: Bit bash SPI master and slave.

    Here is the SPI slave code There is more than needed but I tried to remove the chaff




    ;-------------------------------------------------------------------------------
    ;**** Added by Fuse...
  118. Replies
    9
    Views
    78

    Re: Bit bash SPI master and slave.

    Code display is not working I will try another way




    SPI_INTERRUPT:


    If SSPIF = cTrue Then ; Do we have the right interrupt?
  119. Replies
    9
    Views
    78

    Re: Bit bash SPI master and slave.

    Hi George

    A taster of the code,

    The way it works is you allocate a set of regs and the master reads or writes to them. In my I have the first reg as a command byte so the main code can get...
  120. Replies
    9
    Views
    78

    Re: Bit bash SPI master and slave.

    Hi George

    I have code, Its interrupt driven on the SPI slave side, tested working... I will post it tomorrow.
  121. Replies
    41
    Views
    249

    Re: Advertisement on the forum

    Look at the likes of the EVblog. They have adverts and I see no issues with it. If it helps pay for the forum. I'm all for it.
  122. Replies
    17
    Views
    91

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

    I'm happy to pay an annual fee.
  123. Replies
    33
    Views
    2,073

    Re: Multiple functions by a single switch

    Do you want 4 buttons on one pic pin or 4 functions of 1 button?
  124. Replies
    4
    Views
    37

    Re: Chocolate egg delivery mechanism

    Hi George

    It was an exhibit in a sex exhibition. There were man and a lady fiberglass manikin leaning against the wall. The public used a paddle to twack the rear ends and a big set of lights lite...
  125. Replies
    4
    Views
    37

    Re: Chocolate egg delivery mechanism

    Hi,

    A few questions
    Is the egg to be raised up or fall down
    Is it actually egg shaped eg will it not roll
    How heavy is the egg?

    Thoughts
    Heath Robinson from memory used string (complete...
  126. Replies
    3
    Views
    39

    Re: Lin bus and auto baud detection

    Thanks George

    I had seen that but they do not show the source or explain how it works. You need to use the IDE to generate the code first, then i would have to figure out what it was doing and it...
  127. Replies
    3
    Views
    39

    Lin bus and auto baud detection

    Lin bus looks to be a great system for an application i'm working on. One of the main things is the slave can be really simple without needing a crystal. To resolve the usart timing its master sends...
  128. Re: Display Which Will Work In Direct SunLight ??

    Just look for a transflective display. There are loads of them.

    There is the Samsung routines build into Proton but there is other displays supported....
  129. Replies
    6
    Views
    132

    Re: PIC16F18877 - no PWM output

    Hi,

    Some starters

    1 Make sure you can flash the led eg that the pic runs at the right speed
    2 In your code the reg and port set up seems to extensive and you may have set something wrong. The...
  130. Thread: Unpacked BCD Maths

    by Tim
    Replies
    9
    Views
    58

    Re: Unpacked BCD Maths

    Oops my bin calculator stripped some of the numbers off.
  131. Thread: Unpacked BCD Maths

    by Tim
    Replies
    9
    Views
    58

    Re: Unpacked BCD Maths

    Excuse my ignorance I have a question or 2

    Is the number 46084500000 the large end of the numbers you will need to process as thats still smaller than a Dword

    Did you convert the BCD to binary?...
  132. Replies
    5
    Views
    43

    Re: Sensitive Reflective Light Sensor

    I decided to do some more testing with my capacitive system and was disappointed, to much drift so I'm going to try out the OPB9000.

    Thanks for the heads up
  133. Replies
    5
    Views
    43

    Re: Sensitive Reflective Light Sensor

    The article was interesting. Unfortunately the use of floats falls foul of patents. I'm going down the path of capacitive sensors. I'm pretty sure it will be my solution.

    I just need to actually...
  134. Replies
    10
    Views
    54

    Re: HBUSIN stops program?

    Opps

    I did not do my checking. Hbus in an i2c command not SPI

    I was talking about SPI

    Sorry!
  135. Replies
    10
    Views
    54

    Re: HBUSIN stops program?

    Hbusin is a hardware command that has to wait until the flag says there is data in the register. So if no data is sent then I will wait. Just like HRSIN

    Look to see if there is a timeout for that...
  136. Replies
    18
    Views
    95

    Re: Inexplicable fault. Any tips? RESOLVED!!!!!!!

    So before I tell you the issue. Just a comment on the logic low. That was one of the first things I checked. The chip also has a pull down and I lifted the legs and applied the feed from the Pic to...
  137. Replies
    18
    Views
    95

    Re: Inexplicable fault. Any tips?

    Well it looks like I'm doing something wrong. I swapped the part for a DRV8870DDAR. I modified the Irlim etc to suit and exactly the same. Only Out2 is being driven.

    If I had any hair left I would...
  138. Replies
    18
    Views
    95

    Re: Inexplicable fault. Any tips?

    Hello Thoranaga

    I have 4 boards all the same.

    New parts are arriving today so will see what happens.
  139. Replies
    18
    Views
    95

    Re: Inexplicable fault. Any tips?

    Henk

    There was load to start with and I have tried many times with load without load.

    I purchased 20 direct from TI then I found Farnell sell an equivalent. DRV8870DDAR I cannot actually see...
  140. Replies
    18
    Views
    95

    Re: Inexplicable fault. Any tips?

    I think now it's a faulty batch. I took a proto board with pads to suit the chip. Wired up the device and tested it using the 12v 0v and 5v signal lines from my normal board and the result was the...
  141. Replies
    9
    Views
    107

    Re: How much code space our routines have article

    Probably not right here but when I'm looking to save code space. I look through the ASM file. The lines of basic are there and followed by the ASM. You can see at a glance the code that takes up a...
  142. Replies
    18
    Views
    95

    Re: Inexplicable fault. Any tips?

    Hi Norm and Gamboa

    I have pulled the chip and checked the traces all are good.
    As I said I swapped the chips between good and bad boards, Chip works on the good not the bad
    3 new boards worked...
  143. Replies
    18
    Views
    95

    Re: Inexplicable fault. Any tips?

    Thanks

    No cables used and I'm testing with a scope directly on the board.
  144. Replies
    18
    Views
    95

    Inexplicable fault. Any tips?

    Hi

    I have a board that has a DRV8871 (h bridge chip) on board. I have used them before. I have them on a board from a previous batch (same pcb just soldered at another time)
    I have use them on a...
  145. Replies
    5
    Views
    34

    Re: Managing Anti Virus Software

    I'm with Gamboa

    My thoughts now are

    1 Antivirus software is now a liability. It has hooks into the OS and has been shown have bugs. They can be used to get in.
    2 Your better off using Windows...
  146. Re: GPS Which Is the Best to Use On a New Project?

    As your going down my route.

    If you want to PM me we can talk about what I can do to help

    I have all the code for the USB side with the ability to do firmware updates etc
    I have the code to...
  147. Re: GPS Which Is the Best to Use On a New Project?

    Some thoughts

    How much data do you need to send?
    If they are already connecting it to a PC then a USB socket may not be a big deal. I recommend HID so it really is plug and play. But the data...
  148. Re: GPS Which Is the Best to Use On a New Project?

    Here is the NMEA extraction code


    ;===============================================================


    NMEAStringConvert:
    TempB2 = 0
    While 1 = 1
    TempB1 = INDF2
  149. Re: GPS Which Is the Best to Use On a New Project?

    Hi

    This is the interrupt code


    '-------------------------------------------------------------------------------------------'
    ' USART INTERRUPT
    ' Loads in the required GPS strings
    '...
  150. Re: GPS Which Is the Best to Use On a New Project?

    I have to ask why an SD card? Is it to transfer data? These days people expect Bluetooth etc

    The part I used is equivelent to the this https://www.f-tech.com.tw/gps-gnss/fmp32-gps-module/

    In...
  151. Re: GPS Which Is the Best to Use On a New Project?

    Just to add I only have 18 series Proton code
  152. Re: GPS Which Is the Best to Use On a New Project?

    I started using https://www.f-tech.com.tw/ way back in 2009. They are still going and always given me good service. My product is still selling (not through me) and in the 1000's

    If you need help...
  153. Replies
    8
    Views
    50

    Re: Common anode 7-segment display driver

    Have you thought about a few dual channel P channel mosfet chips?

    It's not the array you want but they seem to be not available.
  154. Replies
    9
    Views
    57

    Re: Assembler to Proton

    You can use it just the same as tumbleweed posted. The first refie is in a conditional test block

    If you want to use Context save/restore then modify the code

    But Context save is not needed for...
  155. Replies
    4
    Views
    41

    Re: CWrite Issues on 16F

    Sorry for the delay

    Yes if it says 32 byte then its a number divisible by 32. eg $4EC0 which is 32 x 630

    You have to write from the same 32 byte boundry

    Ewrite basically writes to a set of...
  156. Some example code for the max31865 RTC converter

    Hi,

    The code below is taken from a project and will not compile AS IS so please forgive me. I may make it stand alone later.

    Its meant to aid people in how to read, process and generate a...
  157. Replies
    4
    Views
    41

    Re: CWrite Issues on 16F

    Some thoughts

    Ensure StoreAddr is on the correct boundary and you are writing the correct number of bytes. Some are as low as 32 bytes others 64. Look at the data sheet or the PPI file for the...
  158. Replies
    4
    Views
    1,667

    Re: Serial Software vs Hardware

    You don't say what array type mbuffer is. I suspect if you use the Dec modifier before the Hrsout you will get the same results
  159. Replies
    6
    Views
    51

    Re: Resistor measure with pwm and adc?

    You have not given us any information at all.

    Until you show a schematic or link to the article there is nothing people can do to help you.
  160. Replies
    6
    Views
    51

    Re: Resistor measure with pwm and adc?

    You can just use the ADC in an resistor divider set up.
  161. Replies
    10
    Views
    38

    Re: Hot mosfet Do I worry?

    I followed the design guidelines for the fans
  162. Replies
    10
    Views
    38

    Re: Hot mosfet Do I worry?

    I have replaced the Mfet with the one I said I would. It does not now even get warm.
  163. Replies
    10
    Views
    38

    Re: Hot mosfet Do I worry?

    Here is the schematic

    I'm changing out the Mosfet (The part in the schematic was not used) to a Infineon IPD50P04P4L11ATMA1 P-channel MOSFET, 50 A, 40 V

    3527
  164. Replies
    10
    Views
    38

    Re: Hot mosfet Do I worry?

    Thanks Henk

    I will get the other Mosfet

    Tim
  165. Replies
    10
    Views
    38

    Hot mosfet Do I worry?

    Hi,

    I'm using a P channel mosfet as a reverse voltage protection device. It's a NTD2955T4GOSCT-ND rated at 12 amps

    I have 2 big arse fans that combined can draw 8 amps to were talking drawing...
  166. Re: Has anyone code to set up a firewing board 18f... to talk via the USART/USB?

    :calm::calm::encouragement:

    Thanks, works now!
  167. Re: Has anyone code to set up a firewing board 18f... to talk via the USART/USB?

    Thanks

    After using fuse config I got it to work in a sim. Not yet on the board, I think it's a timing issue. But getting nearer..

    Cheers
  168. Re: Has anyone code to set up a firewing board 18f... to talk via the USART/USB?

    Hi

    I have a firewing dongle somewhere. I need the fuse setup etc

    Thanks

    Tim
  169. Re: Has anyone code to set up a firewing board 18f... to talk via the USART/USB?

    Thanks

    Do you have any sample code showing it working that I can program not using the bootloader. Eg the icsp

    Thanks

    Tim
  170. Has anyone code to set up a firewing board 18f... to talk via the USART/USB?

    Hi As per title I have a firewing board 18F and want make it talk via the built in USART/USB device to a terminal.

    I can program its via a Pickit2

    I'm having issues. Has anyone a bit of code...
  171. Thread: 2 port i2c

    by Tim
    Replies
    2
    Views
    30

    Re: 2 port i2c

    Thanks Les

    The first time I compiled with only one parameter it complained. Now it works

    Thanks
  172. Thread: 2 port i2c

    by Tim
    Replies
    2
    Views
    30

    2 port i2c

    Hello.

    I need to have 2 ports for use with a pair of i2c devices. They have the same address so I have to use 2 ports

    12cin lets you specify the port but its syntx is not compatable

    I need...
  173. Thread: CData Table

    by Tim
    Replies
    8
    Views
    84

    Re: CData Table

    When formating stuff in the past I used a word processor as they have better find/replace commands and if need be use a macro or 2
  174. Thread: Trying to set ORG

    by Tim
    Replies
    4
    Views
    36

    Re: Trying to set ORG

    Not had a chance to check but org is a assembler directive so you need @ Org
  175. Conversion of I2C code from Firewing to Proton

    Hi

    I had some code I used to read an i2c device that I originally used in Firewing.

    But I'm confused by the syntax conversion to software i2c in Proton
  176. Replies
    4
    Views
    64

    Re: Syncronous comms between two PIC's

    Just to show you how little code needs to run for an SPI routine


    Slave code


    SPI_INTERRUPT:

    If SSPIF = cTrue Then ; Do we have...
  177. Replies
    4
    Views
    64

    Re: Syncronous comms between two PIC's

    Hi Towreg

    I have a load of code for 2 pic coms. The issue is the no interrupts requirement. Interrupts are needed on the slave side unless it's doing nothing else.

    On the master side with SPI...
  178. Thread: PCB Stencils

    by Tim
    Replies
    6
    Views
    80

    Re: PCB Stencils

    My 2 cents worth

    For SMD that is not just simple SMT and it's a one off eg has legs that stick out then a solder iron is great. If it has hidden legs or is very fine pitch then a solder mask is...
  179. Replies
    7
    Views
    96

    Re: Easier way to initialize EEPROM

    Not sure exactly what is onerous about writing the edata out once during programming. Afew cut paste blocks will do it in a min or 2.


    If the values have to be different every time I would fill...
  180. Replies
    25
    Views
    121

    Re: Just to let you know

    From my very limited experience of a procedural language with local variables, It uses a lot of vars. Way more than I would use.

    The $define example I used while a little more of a pain to set up...
  181. Replies
    25
    Views
    121

    Re: Just to let you know

    There is also $Define



    ; Rounded division

    $define RoundedDiv(ValueNum, ValueDivisor, TheResult) dSTempDWord1 = ValueNum: wSTempWord1 = ValueDivisor'
    GoSub RoundedDivSub '
    ...
  182. Replies
    2
    Views
    38

    Re: PCB proto assembly UK

    Thanks

    Not sure they will take already manufactured boards. But will check them out for a new job.

    Tim
  183. Replies
    2
    Views
    38

    PCB proto assembly UK

    Hi

    I'm just too busy these days and my electronics shop too messy to let me get round to assembling a PCB. So I'm looking to farm it out.

    Its SMT that will need a solder mask to fix one part as...
  184. Thread: CDATA oddities?

    by Tim
    Replies
    4
    Views
    69

    [SOLVED !] Re: CDATA oddities?

    What CPU was it coded for?
  185. Re: Need someone smarter than me to write code for POV displays

    Hi Rick

    Dow, sorry :)

    You should still consider Gabi.

    Tim
  186. Re: Need someone smarter than me to write code for POV displays

    Also have you considered Android? There is a lot of hardware out there, and Android can handle all the back end GPU stuff.

    ...
  187. Re: Need someone smarter than me to write code for POV displays

    Hi Rick

    There are systems that will do what you want. for example 4D Systems https://www.4dsystems.com.au/ You do though pay a premium.

    I'm not sure if you used Gabi in the past but he has...
  188. Replies
    1
    Views
    51

    Re: Someone experience with Delta robots?

    Sorry cannot help but just had to say. So cool! I would love to have one!

    Again sorry for not having any info
  189. Replies
    8
    Views
    94

    Re: Getting OLD PC apps to run on Win 10

    So I got a response back from the author. The issue is with the installer so he sent the files for the exe etc and now it works!!!!

    Happy chappy!

    Tim
  190. Replies
    7
    Views
    68

    Moved to say thanks to Les

    I was coding last night and looking in amazement at how compact the ASM is. It reminded me of doing the same back around the start of the 2000's.

    That was around 16 years ago.

    WOW! ~16 years...
  191. Replies
    8
    Views
    94

    Re: Getting OLD PC apps to run on Win 10

    Hello George

    I prefer basecalc

    Lester

    I tried that an others but no luck

    Thanks
  192. Replies
    1
    Views
    81

    Re: 8bit PWM duty cycle adjust

    I found that its not a useful 8 bits etc the value you write to the CCPR1L reg and the other 2 bits is not a straight 8 bits

    In the end I found the working range is 0 to ~316 for my freq and xtal...
  193. Replies
    1
    Views
    81

    8bit PWM duty cycle adjust

    Hi,

    I'm going nuts now trying to get the PWM duty cycle to adjust via the regs

    In the past I used the code

    $define SetPWM(PidValue) CCP1CON.4 = PidValue.0 : CCP1CON.5 = PidValue.1 : CCPR1L...
  194. Replies
    8
    Views
    94

    Re: Getting OLD PC apps to run on Win 10

    I emailed the author so will if he responds

    Tim
  195. Replies
    8
    Views
    94

    Re: Getting OLD PC apps to run on Win 10

    Thanks John

    It's currently in my downloads folder..

    Tim
  196. Replies
    8
    Views
    94

    Getting OLD PC apps to run on Win 10

    Hi,

    I know that the title is not exactly MCU based but there is a reason

    I used to use bascalc, it is a programmer calculator. I found it much easier to use than any other I have found.
    ...
  197. Replies
    32
    Views
    394

    Re: New PICkit 4 available

    Does it have a UI that does not involve Mplabs?
  198. Replies
    16
    Views
    83

    Re: Push or pull on fan

    Hi Rick

    Thanks, I'm looking at really high level of cooling on a product, so will look at those. The current tests with 2 x 120mm fans shows that I could get just about the cooling I need with 4...
  199. Replies
    8
    Views
    47

    Re: Who has a good eye for design?

    Barry

    You need to PM with an email address so I can send a link

    Tim
  200. Replies
    8
    Views
    47

    Re: Who has a good eye for design?

    Hi Steve

    I cannot find your email. PM or email me again would you?

    Thanks

    Tim
Results 1 to 200 of 1000
Page 1 of 5 1 2 3 4