Search results

  1. E

    Using a double-DAC MAX519, with I2C

    This is working to run a DC motor connected to C.2 on 14M2. hpwm pwmdiv64, pwmsingle, pwmHHHH, %0001, 100, 220 /Edmunds
  2. E

    Soft and hard limits

    Dear all, I'm continuing to work on the magnet follower. One problem I need to tackle is to limit the steering being pushed too far to either end by the stepper motor, because when that happens, most of the time the slider is tightened against the mechanism in a way the stepper motor itself is...
  3. E

    1:87 scale lorry line follower, TLS1401CCS, STSPIN220, 40X2

    If you mean the .rar file, then the answer is no. There are 5 or 6 files if I remember correctly and at least one of them is too large to paste. Just download, rename the file to whatever.rar by removing the .txt extension. Sorry for the trouble, but forum would not take .rar files. /Edmunds
  4. E

    MacAxePad needs to be updated for 64 bit for future compatibility

    My 5c for a decent mac version, too. Mac is growing, PC is shrinking. Mac has some of the best embedded development tools around (for ARM, for an example, Arduino IDE seems to be fine). Why not picaxe? It is not that difficult to maintain cross-platform code. You just have to be a bit careful...
  5. E

    Line/magnet follower

    It actually does work quite a bit faster, too. The distance between 2x2mm cylinder magnets is 10mm. Approximately the same for straights and the turn. Edmunds
  6. E

    Line/magnet follower

    Dear all, You should see a smile on my face :). I don't have time, nor energy tonight for more than one turn, but this scores as a proof of concept in my book. Cheers, Edmunds
  7. E

    Line/magnet follower

    Dear all, The code below [did not fit in the post] works with both magnet polarities. I have not implemented the 'message' yet, but it is a mere technicality of counting the magnet transitions after an S magnet 'start condition'. In the meanwhile, I need to build the track and improve the code...
  8. E

    Line/magnet follower

    I was aware of the sensors, but did not know how they work. Now, knowing how they work (if I understand it correctly) they need uniform and moving past the sensor 'tooth' of some kind to generate the sinusoidal signal used for detection. I cannot imagine, how could I generate that for lateral...
  9. E

    Line/magnet follower

    Thanks for all the ideas, guys! I have been battling mechanical problems with steering to exhaustion, but it seems to be sorted now. Here is the first attempt - no real PID tuning, nothing. Looks promising to me :). Now one has to build a test layout. Cheers, Edmunds
  10. E

    Line/magnet follower

    This is where we started about 15 years ago. Today, we have cars that use the same idea for steering, but are equipped with operational lights, adjustable speed control, prototypical distance control, IR and BT communication, wireless charging and many other things. Edmunds
  11. E

    Line/magnet follower

    The below code packs everything into 15bit word. Seems to be working on the 'lab setup' and while it looks massive, it is only a few instructions that actually have to be executed in each loop - takes about 1.4ms, which sounds alright. I'm traveling for the next few days, but then I hope to...
  12. E

    Generating an "I2C Restart" condition.

    p.207 in your datasheet. Edmunds
  13. E

    Generating an "I2C Restart" condition.

    I2C Restart Condition: Pull the clock line low, then Release the data line. Release the clock line. Pull the data line low for a restart. PICaxe supports this, for 40X2 hardware it is data sheet page 225. Cheers, Edmunds
  14. E

    Line/magnet follower

    15 would actually suffice. The optical line follower followed a 2mm line with an 8mm wide sensor with 15 pos resolution and was performing very well after two months of effort :). It was sensitive to ambient light, however, which could only partly be compensated by adjusting brightness of the...
  15. E

    Line/magnet follower

    I'm not sure a single wire would be easier to follow than individual magnets. Sending and receiving messages in the wires would be no problem, per se, however, there would be a separate wire needed for every location based message as otherwise the same message would be sent to every car...
  16. E

    Line/magnet follower

    Wow, lots of ideas and code. Thank you! I have been tinkering today as well. I have lifted the magnet by 1mm, which helped a lot with 'non-linearity' of my sensor array. As you say, Alan, some of that sideways flux must have been reduced to values not messing up with hall sensors. The below is...
  17. E

    Line/magnet follower

    Dear all, I'm reading sensors comfortably, be it two, three or for. I can also calibrate them for offset. I tried calibrating for gain, but there seems to be no need as they come out +/-1 in the scale of 1024, which is plenty for what is needed. What throws me back to square one is I cannot...
  18. E

    ADC5 input, 40X2

    Sorted. AXE091 has this strange thing to accommodate 28-pin device in between 40-pin device. I have never used it and thought you could use the inside row of pin headers as well. Apparently, some pins are routed the same and work, but some are not. Sorry for the trouble ;) Thank you for your...
  19. E

    ADC5 input, 40X2

    I tried the DAC test and input5 functions is (almost) identical to input13. No idea at this point. Must be me doing something wrong. Edmunds
  20. E

    ADC5 input, 40X2

    Put this in a loop for testing: Symbol LL_ADC = b4 'Leftmost hall sensor reading Symbol L_ADC = b5 'Left hall sensor reading Symbol R_ADC = b6 'Right hall sensor reading Symbol RR_ADC = b7 'Rightmost hall sensor reading readadc 0, LL_ADC...
Top