Astronomy is interesting and attractive science that can inspire students to study STEM.The aim of the course is to show the capabilities of the software SalsaJ for measuring the dimensions of astronomical objects. This software is free, easy to install and use in the classroom.