Moderators: roger, 99jonathan, imaqine
gloomyandy wrote:You do not need to switch the port between modes to allow access to analogue and i2c data. However many sensors use the digital lines as well as the analogue line so you have to check this on a case by case basis. You will probably be Ok mixing touch and i2c, but you may need to take care with the order that you create the devices...
Andy

mattallen37 wrote:The touch sensor doesn't use the digital pins, only Gnd and Analog.

gloomyandy wrote:I don't think there is a problem with the current snapshot, but you do need to do a little more work. You need to replace the command files in the bin directory as well as copying over the lib files (which is what I said in the other post). Have you tried doing this?
Andy

mattallen37 wrote:That should be fine. I haven't used one of those, but I have heard it is just a resistor network, so it would just be like an analog sensor. I am quite sure it doesn't use the digital pins for anything.

Well, that was the idea.icemadsen wrote:...which could also solve our problem with daisy-chaining more than 2 MUX's...!
gloomyandy wrote:Can't be 100% sure as I'm not in a position to check the code at the moment. My best guess would be to create the touch sensor first then the i2c sensor... Should be easy to test though... The touch Mux should also be Ok but only if the pass through is truly a pass through as the sensor code depends on reading different voltages to identify the various touch sensors. If the Mux messes around at all (or adds any extra resistance into the analogue path) you may have problems...
gloomyandy wrote:If you are still having problems with the snapshot please tell us exactly what you have tried and what OS etc. you are using...
Andy

icemadsen wrote:4. Executing nxjflash, which fails with the NXTCommException
gloomyandy wrote:Hi,
Can you post the details of the exception. Also try copying the jfantom.dll to your leJOS bin directory and see if that helps (you may want to try both the version that is in the snapshot and the old 0.8.5 versions)...
Andy
C:\Users\icemadsen>nxjflash
Building firmware image.
VM file: C:\Program Files (x86)\leJOS NXJ\bin\lejos_nxt_rom.bin
Menu file: C:\Program Files (x86)\leJOS NXJ\bin\StartUpText.bin
VM size: 55472 bytes.
Menu size: 44124 bytes.
Total image size 99676/100352 bytes.
Locating device in firmware update mode.
lejos.pc.comm.NXTCommException: Cannot load a comm driver
at lejos.pc.comm.NXTSamba.search(NXTSamba.java:139)
at lejos.pc.tools.NXJFlashUpdate.openSambaDevice(NXJFlashUpdate.java:176)
at lejos.pc.tools.NXJFlash.openDevice(NXJFlash.java:59)
at lejos.pc.tools.NXJFlash.run(NXJFlash.java:147)
at lejos.pc.tools.NXJFlash.main(NXJFlash.java:189)C:\Users\icemadsen>nxjflash
Building firmware image.
VM file: C:\Program Files (x86)\leJOS NXJ\bin\lejos_nxt_rom.bin
Menu file: C:\Program Files (x86)\leJOS NXJ\bin\StartUpText.bin
VM size: 55472 bytes.
Menu size: 44124 bytes.
Total image size 99676/100352 bytes.
Locating device in firmware update mode.
No devices in firmware update mode were found.
Searching for other NXT devices.
No NXT found. Please check that the device is turned on and connected.
skoehler wrote:Update: found a bug, working on a fix.

Users browsing this forum: No registered users and 1 guest