You are not logged in.
Pages: 1
Topic closed
Hi,
I don't see any output on my Monarco HAT - tried digital outputs, LEDs - no success.
I thought that it is something with my project, but tried Monarco DEMO and nothing changed.
However, reading 1-wire sensors by OWS works just fine!
Can you help me troubleshoot this?
Regards
Hubert
Offline
Hi Hubert,
please try this example which should:
Toggle DO1 each 500 milliseconds (note that DOs of the Monarco HAT are sinks, therefore you will not see any voltage with a multimeter).
Toggle LED1 each 500 milliseconds, because it is tied to DO1 (bit 0 of LEDS_Mask is 0)
Light up LED2, which is controlled separately from DO2 (bit 1 of LEDS_Mask is 1).
Toggle LED4 each 100 milliseconds (bit 3 of LEDS_Mask is 1, so it is controlled separately from DO4).
Moreover, the system LED (orange) should be 1 second ON and 1 second OFF to indicate that RexCore is communicating with the Monarco HAT.
Try toggling CNB_LED2 manually to control LED2.
Let me know if it works for you, either fully or partially or not at all.
Also please specify what Raspberry Pi model are you using and what operating system is installed (Raspbian Jessie or Jessie Lite?).
Kind regards
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Hi Jaroslav,
I tried your test example and don't see any LED lighting up.
I have Jessie Lite and Raspberry PI 2 board
Hubert
Offline
Hi Hubert, in that case:
1) Can you run lsmod on your Raspberry Pi? Do you see spi_bcm2835 listed?
2) Are there SPI buses on your system?
ls /dev/spi*
You should see /dev/spidev0.0 and /dev/spidev0.1
3) What is the orange LED doing?
How is your setup powered? 24VDC via the Monarco HAT connector? No microUSB 5V power supply connected to the Raspberry Pi?
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
1. lsmod:
spi_bcm2835 6678 0
2. spi devices:
/dev/spidev0.0 /dev/spidev0.1
3. Orange led. To be honest I don't see orange LED. My monarco is in alu case and I only see red LED somewhere inside - I guess this is R PI power led.
If orange LED is under the connector then I never seen it flashing.
4. Power. My set is powered by 24VDC input through connector. Nothing connected to the R PI usb port. Never tried to power raspberry instead of Monarco HAT.
Regards
Hubert
edit:
More output from lsmod that could be interesting:
Module Size Used by
cfg80211 428431 0
rfkill 16037 1 cfg80211
rtc_ds1307 9521 0
snd_bcm2835 20447 0
snd_pcm 75762 1 snd_bcm2835
snd_timer 19288 1 snd_pcm
snd 51908 3 snd_bcm2835,snd_timer,snd_pcm
spi_bcm2835 6678 0
i2c_bcm2708 4834 0
bcm2835_gpiomem 3040 0
w1_gpio 3657 0
wire 25219 1 w1_gpio
bcm2835_wdt 3225 0
cn 4374 1 wire
uio_pdrv_genirq 3164 0
uio 8000 1 uio_pdrv_genirq
i2c_dev 5859 2
ipv6 347594 36
Last edited by hubc (2017-01-25 16:54:17)
Offline
Hello again.
Just noticed some errors in logs. Sorry I didn't posted it before, but somehow I didn't noticed them.
2017-01-25 19:43:42.547 Verbose MonarcoHatDrv: LibMonarco: monarco_init: OK
2017-01-25 19:43:42.662 Error MonarcoHatDrv: LibMonarco: monarco_main: Invalid RX CRC
2017-01-25 19:43:42.662 Warning Unable to load HMI from "/rex/rexcore/hmi.rex": File open error
2017-01-25 19:43:43.662 Info RexCore is running
2017-01-25 19:43:47.162 Error MonarcoHatDrv: LibMonarco: monarco_sdc_tx: SDC item 0 R ADDR=0x000 timeout
Hubert
Offline
Hi Hubert,
I have uploaded a video showing the decribed behavior. The Raspberry Pi is booting up during the first 20 seconds and afterwards the algorithm takes control:
Hi Hubert,
please try this example which should:
Toggle DO1 each 500 milliseconds (note that DOs of the Monarco HAT are sinks, therefore you will not see any voltage with a multimeter).
Toggle LED1 each 500 milliseconds, because it is tied to DO1 (bit 0 of LEDS_Mask is 0)
Light up LED2, which is controlled separately from DO2 (bit 1 of LEDS_Mask is 1).
Toggle LED4 each 100 milliseconds (bit 3 of LEDS_Mask is 1, so it is controlled separately from DO4).
Moreover, the system LED (orange) should be 1 second ON and 1 second OFF to indicate that RexCore is communicating with the Monarco HAT.
Here is the link: https://youtu.be/afNQ1teM7vk
Let me know how your Monarco HAT behaves.
Thanks,
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Hi Jaroslav,
I don't see leds turning on at all!
Should leds light up on every boot? Or only with monarco-test project?
Regards
Hubert
Offline
Hi Hubert,
the first 3 seconds of the video show the "booting up" of the Monarco HAT itself. This should be the same on every boot, regardless of your project and programming framework. Your project can only affect the outputs and LEDs once Linux has started (after approx 20 seconds).
Can you please remove the Monarco HAT from your Raspberry Pi and power it up with nothing connected to it? You should see all the LEDs light up 3 times, just like in the video. By that we'll know whether the problem is in the Monarco HAT itself or somewhere else.
Thanks for your cooperation!
Best regards,
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Hi Jaroslav,
OK I will check that soon (next week) and let you know!
Hubert
Offline
Hi Jaroslav,
Finally I detached rpi from Monarco hat, and checked as you suggested - same result.
No LED flashing at any moment.
Does it mean my Monarco HAT is faulty?
Please remember (as stated in previous posts) that I don't remember to see leds on Monarco to flash anytime before, and that Monarco is powering my R Pi device and I am using 1-wire Monarco ports without any issues.
Regards
Hubert
Offline
Hi Hubert,
this is very unexpected behavior, I'm sorry for the troubles. To be honest, I have no idea how such a combination of symptoms could occur. In any case, there is definitely some problem with your Monarco HAT, therefore please ship it to us for further analysis. I'll get in touch via e-mail.
Kind regards,
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Pages: 1
Topic closed